diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-arrow-assignment-expression-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-arrow-assignment-expression-script-code-valid.js index 6b2f5c52ae..bb65446c91 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-arrow-assignment-expression-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-arrow-assignment-expression-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} let f = () => import('./script-code-valid.js'); diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-arrow-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-arrow-script-code-valid.js index b2775c7885..e5d88aca4f 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-arrow-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-arrow-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} let f = () => { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-await-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-await-script-code-valid.js index 1d158bc8e3..653758e7eb 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-await-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-await-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} async function f() { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-return-await-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-return-await-script-code-valid.js index 59562aa7a5..d66168a935 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-return-await-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-return-await-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} async function f() { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-script-code-valid.js index c84ea7b9f8..c11335ff13 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-async-function-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} async function f() { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-block-labeled-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-block-labeled-script-code-valid.js index 13497b34e7..5ee1cdd900 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-block-labeled-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-block-labeled-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} label: { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-block-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-block-script-code-valid.js index 5d6695e798..c8d11be30f 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-block-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-block-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-do-while-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-do-while-script-code-valid.js index 48f077ce61..99f29fc051 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-do-while-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-do-while-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} do { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-else-braceless-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-else-braceless-script-code-valid.js index f89757b044..f9f2c9fb07 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-else-braceless-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-else-braceless-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} if (false) { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-else-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-else-script-code-valid.js index 35ea822ce4..ca6918a294 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-else-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-else-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} if (false) { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-function-return-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-function-return-script-code-valid.js index c0e3e4bd12..dc950a2b9c 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-function-return-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-function-return-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} function fn() { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-function-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-function-script-code-valid.js index 7ec29607eb..22198dc752 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-function-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-function-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} function fn() { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-if-braceless-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-if-braceless-script-code-valid.js index 098450e4bd..579eab7158 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-if-braceless-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-if-braceless-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} if (true) import('./script-code-valid.js'); diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-if-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-if-script-code-valid.js index 60ef420095..379707ed72 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-if-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-if-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} if (true) { diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-while-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-while-script-code-valid.js index 4ad2971bf3..dbe745629f 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-while-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-while-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} let x = 0; diff --git a/test/language/module-code/dynamic-import/syntax/valid/nested-with-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/nested-with-script-code-valid.js index 1249a3c603..1d7e113289 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/nested-with-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/nested-with-script-code-valid.js @@ -21,9 +21,9 @@ info: | 9. Return promiseCapability.[[Promise]]. ---*/ -// 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() {} with ({}) { diff --git a/test/language/module-code/dynamic-import/syntax/valid/top-level-script-code-valid.js b/test/language/module-code/dynamic-import/syntax/valid/top-level-script-code-valid.js index 4509545ac1..4bd26b294a 100644 --- a/test/language/module-code/dynamic-import/syntax/valid/top-level-script-code-valid.js +++ b/test/language/module-code/dynamic-import/syntax/valid/top-level-script-code-valid.js @@ -11,9 +11,9 @@ info: | import( AssignmentExpression ) ---*/ -// 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('./script-code-valid.js');