mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
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…
x
Reference in New Issue
Block a user