cred: isolate scripts in WASI and move RSA signing to AWS-LC
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
/*---
|
||||
flags: [qjs:no-detect-module]
|
||||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
const undefined = 42 // SyntaxError at global scope
|
||||
@@ -0,0 +1,4 @@
|
||||
/*---
|
||||
flags: [qjs:no-detect-module, module]
|
||||
---*/
|
||||
const undefined = 42 // not a SyntaxError at toplevel module scope
|
||||
@@ -0,0 +1,4 @@
|
||||
/*---
|
||||
flags: [qjs:no-detect-module]
|
||||
---*/
|
||||
{ const undefined = 42 } // not a SyntaxError, not at global scope
|
||||
@@ -0,0 +1,4 @@
|
||||
/*---
|
||||
flags: [qjs:no-detect-module]
|
||||
---*/
|
||||
;(function() { const undefined = 42 })() // not a SyntaxError, not at global scope
|
||||
Reference in New Issue
Block a user