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