cred: isolate scripts in WASI and move RSA signing to AWS-LC
This commit is contained in:
@@ -0,0 +1 @@
|
||||
await undefined
|
||||
@@ -0,0 +1,2 @@
|
||||
const p = Promise.resolve(42)
|
||||
await p
|
||||
@@ -0,0 +1 @@
|
||||
await = 42 // parsed as classic script
|
||||
@@ -0,0 +1,8 @@
|
||||
/*---
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
// the import statement makes it a module but `await = 42` is a SyntaxError
|
||||
import * as _ from "dummy"
|
||||
await = 42
|
||||
@@ -0,0 +1,3 @@
|
||||
// imports should classify it as a module, even when not at the top
|
||||
os.now()
|
||||
import * as os from "qjs:os"
|
||||
Reference in New Issue
Block a user