mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
fix valid script code example
This commit is contained in:
parent
3589fa9d82
commit
4388d5dc25
@ -6,9 +6,9 @@ template: syntax/valid
|
||||
---*/
|
||||
|
||||
//- setup
|
||||
// It is a Syntax Error if ModuleItemList Contains NewTarget
|
||||
// This is still valid in script code
|
||||
new.target;
|
||||
// This is still valid in script code, and should not be valid for module code
|
||||
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
|
||||
var x; function x() {}
|
||||
|
||||
//- import
|
||||
import('./script-code-valid.js')
|
||||
|
Loading…
x
Reference in New Issue
Block a user