Skip to content

Commit 5b558ea

Browse files
ptomato review
1 parent a9a33ed commit 5b558ea

File tree

44 files changed

+22
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+22
-111
lines changed

src/dynamic-import/import-defer-no-rest-param.case

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ desc: ImportCall is not extensible - no rest parameter
66
template: syntax/invalid
77
info: |
88
ImportCall :
9-
import . source ( AssignmentExpression[+In, ?Yield] )
9+
import . defer ( AssignmentExpression[+In, ?Yield] )
1010

1111
This production doesn't allow the following production from ArgumentsList:
1212

src/dynamic-import/import-defer-script-code-valid.case

-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,5 @@ template: syntax/valid
77
features: [import-defer]
88
---*/
99

10-
//- setup
11-
// This is still valid in script code, and should not be valid for module code
12-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
13-
var smoosh; function smoosh() {}
14-
1510
//- import
1611
import.defer('./empty_FIXTURE.js')

test/language/expressions/dynamic-import/syntax/invalid/nested-arrow-assignment-expression-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-arrow-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-async-arrow-function-await-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-async-arrow-function-return-await-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-async-function-await-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-async-function-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-async-function-return-await-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-async-gen-await-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-block-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-block-labeled-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-do-while-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-else-braceless-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-else-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-function-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-function-return-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-if-braceless-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-if-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-while-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/nested-with-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ info: |
2525
2626
2727
ImportCall :
28-
import . source ( AssignmentExpression[+In, ?Yield] )
28+
import . defer ( AssignmentExpression[+In, ?Yield] )
2929
3030
This production doesn't allow the following production from ArgumentsList:
3131

test/language/expressions/dynamic-import/syntax/invalid/top-level-import-defer-no-rest-param.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ info: |
1515
1616
1717
ImportCall :
18-
import . source ( AssignmentExpression[+In, ?Yield] )
18+
import . defer ( AssignmentExpression[+In, ?Yield] )
1919
2020
This production doesn't allow the following production from ArgumentsList:
2121

test/language/expressions/dynamic-import/syntax/valid/nested-arrow-assignment-expression-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,5 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
let f = () => import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-arrow-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
let f = () => {
3026
import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-async-arrow-function-await-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
(async () => {
3026
await import.defer('./empty_FIXTURE.js')

test/language/expressions/dynamic-import/syntax/valid/nested-async-arrow-function-return-await-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,5 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
(async () => await import.defer('./empty_FIXTURE.js'));

test/language/expressions/dynamic-import/syntax/valid/nested-async-function-await-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
async function f() {
3026
await import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-async-function-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
async function f() {
3026
import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-async-function-return-await-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
async function f() {
3026
return await import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-async-gen-await-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
async function * f() {
3026
await import.defer('./empty_FIXTURE.js')

test/language/expressions/dynamic-import/syntax/valid/nested-block-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
{
3026
import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-block-labeled-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
label: {
3026
import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-do-while-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
do {
3026
import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-else-braceless-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
if (false) {
3026

test/language/expressions/dynamic-import/syntax/valid/nested-else-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
if (false) {
3026

test/language/expressions/dynamic-import/syntax/valid/nested-function-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
function fn() {
3026
import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-function-return-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
function fn() {
3026
return import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-if-braceless-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,5 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
if (true) import.defer('./empty_FIXTURE.js');

test/language/expressions/dynamic-import/syntax/valid/nested-if-import-defer-script-code-valid.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ info: |
2121
9. Return promiseCapability.[[Promise]].
2222
2323
---*/
24-
// This is still valid in script code, and should not be valid for module code
25-
// https://tc39.github.io/ecma262/#sec-scripts-static-semantics-lexicallydeclarednames
26-
var smoosh; function smoosh() {}
27-
2824

2925
if (true) {
3026
import.defer('./empty_FIXTURE.js');

0 commit comments

Comments
 (0)