mirror of
https://github.com/tc39/test262.git
synced 2025-07-30 17:34:51 +02:00
Generate tests
This commit is contained in:
parent
18834b2e19
commit
5ae04619a9
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -34,4 +35,4 @@ info: |
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
let f = () => import('', '');
|
let f = () => import('./empty_FIXTURE.js', {}, '');
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
let f = () => {
|
let f = () => {
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
};
|
};
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
await import('', '')
|
await import('./empty_FIXTURE.js', {}, '')
|
||||||
});
|
});
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -34,4 +35,4 @@ info: |
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
(async () => await import('', ''))
|
(async () => await import('./empty_FIXTURE.js', {}, ''))
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
await import('', '');
|
await import('./empty_FIXTURE.js', {}, '');
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,6 +36,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,6 +36,6 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
return await import('', '');
|
return await import('./empty_FIXTURE.js', {}, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
async function * f() {
|
async function * f() {
|
||||||
await import('', '')
|
await import('./empty_FIXTURE.js', {}, '')
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
label: {
|
label: {
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
};
|
};
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
{
|
{
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
};
|
};
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
do {
|
do {
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
} while (false);
|
} while (false);
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -36,4 +37,4 @@ $DONOTEVALUATE();
|
|||||||
|
|
||||||
if (false) {
|
if (false) {
|
||||||
|
|
||||||
} else import('', '');
|
} else import('./empty_FIXTURE.js', {}, '');
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -37,5 +38,5 @@ $DONOTEVALUATE();
|
|||||||
if (false) {
|
if (false) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
function fn() {
|
function fn() {
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
function fn() {
|
function fn() {
|
||||||
return import('', '');
|
return import('./empty_FIXTURE.js', {}, '');
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -34,4 +35,4 @@ info: |
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
if (true) import('', '');
|
if (true) import('./empty_FIXTURE.js', {}, '');
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
if (true) {
|
if (true) {
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -37,5 +38,5 @@ $DONOTEVALUATE();
|
|||||||
let x = 0;
|
let x = 0;
|
||||||
while (!x) {
|
while (!x) {
|
||||||
x++;
|
x++;
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
};
|
};
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -34,4 +35,4 @@ info: |
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
with (import('', '')) {}
|
with (import('./empty_FIXTURE.js', {}, '')) {}
|
||||||
|
@ -25,7 +25,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -35,5 +36,5 @@ info: |
|
|||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
with ({}) {
|
with ({}) {
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,8 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
Forbidden Extensions
|
||||||
|
|
||||||
@ -24,4 +25,4 @@ info: |
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
import('', '');
|
import('./empty_FIXTURE.js', {}, '');
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
|
||||||
// - src/dynamic-import/syntax/invalid/top-level.template
|
|
||||||
/*---
|
|
||||||
description: ImportCall is not extensible - trailing comma (top level syntax)
|
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
|
||||||
features: [dynamic-import]
|
|
||||||
flags: [generated]
|
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
|
||||||
ImportCall :
|
|
||||||
import( AssignmentExpression )
|
|
||||||
|
|
||||||
|
|
||||||
ImportCall :
|
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
import('',);
|
|
@ -0,0 +1,30 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-arrow-assignment-expression.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following first parameter (nested arrow syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
let f = () => import('./empty_FIXTURE.js',);
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-async-arrow-fn-return-await.template
|
// - src/dynamic-import/syntax/valid/nested-arrow-assignment-expression.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested in async arrow function, returned)
|
description: ImportCall trailing comma following second parameter (nested arrow syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,13 +22,9 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
let f = () => import('./empty_FIXTURE.js', {},);
|
||||||
|
|
||||||
(async () => await import('',))
|
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-arrow.template
|
// - src/dynamic-import/syntax/valid/nested-arrow.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested arrow syntax)
|
description: ImportCall trailing comma following first parameter (nested arrow syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
let f = () => {
|
let f = () => {
|
||||||
import('',);
|
import('./empty_FIXTURE.js',);
|
||||||
};
|
};
|
@ -0,0 +1,32 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-arrow.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested arrow syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
let f = () => {
|
||||||
|
import('./empty_FIXTURE.js', {},);
|
||||||
|
};
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-async-arrow-fn-await.template
|
// - src/dynamic-import/syntax/valid/nested-async-arrow-fn-await.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested in async arrow function, awaited)
|
description: ImportCall trailing comma following first parameter (nested in async arrow function)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
await import('',)
|
await import('./empty_FIXTURE.js',)
|
||||||
});
|
});
|
@ -0,0 +1,32 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-async-arrow-fn-await.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested in async arrow function)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
await import('./empty_FIXTURE.js', {},)
|
||||||
|
});
|
@ -0,0 +1,30 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-async-arrow-fn-return-await.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following first parameter (nested in async arrow function, returned)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
(async () => await import('./empty_FIXTURE.js',));
|
@ -0,0 +1,30 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-async-arrow-fn-return-await.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested in async arrow function, returned)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
(async () => await import('./empty_FIXTURE.js', {},));
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-async-function-return-await.template
|
// - src/dynamic-import/syntax/valid/nested-async-function-await.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested arrow syntax)
|
description: ImportCall trailing comma following first parameter (nested arrow syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,16 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
return await import('',);
|
await import('./empty_FIXTURE.js',);
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,32 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-async-function-await.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested arrow syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
async function f() {
|
||||||
|
await import('./empty_FIXTURE.js', {},);
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-async-function-return-await.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following first parameter (nested arrow syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
async function f() {
|
||||||
|
return await import('./empty_FIXTURE.js',);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,33 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-async-function-return-await.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested arrow syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
async function f() {
|
||||||
|
return await import('./empty_FIXTURE.js', {},);
|
||||||
|
}
|
||||||
|
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-async-function.template
|
// - src/dynamic-import/syntax/valid/nested-async-function.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested arrow syntax)
|
description: ImportCall trailing comma following first parameter (nested arrow syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,16 +22,12 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
import('',);
|
import('./empty_FIXTURE.js',);
|
||||||
}
|
}
|
||||||
|
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-async-function-await.template
|
// - src/dynamic-import/syntax/valid/nested-async-function.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested arrow syntax)
|
description: ImportCall trailing comma following second parameter (nested arrow syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,12 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
async function f() {
|
async function f() {
|
||||||
await import('',);
|
import('./empty_FIXTURE.js', {},);
|
||||||
}
|
}
|
||||||
|
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-async-generator-await.template
|
// - src/dynamic-import/syntax/valid/nested-async-generator-await.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested in async generator, awaited)
|
description: ImportCall trailing comma following first parameter (nested in async generator, awaited)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import, async-iteration]
|
features: [import-assertions, dynamic-import, async-iteration]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
async function * f() {
|
async function * f() {
|
||||||
await import('',)
|
await import('./empty_FIXTURE.js',)
|
||||||
}
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-async-generator-await.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested in async generator, awaited)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import, async-iteration]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
async function * f() {
|
||||||
|
await import('./empty_FIXTURE.js', {},)
|
||||||
|
}
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-block-labeled.template
|
// - src/dynamic-import/syntax/valid/nested-block-labeled.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested block syntax)
|
description: ImportCall trailing comma following first parameter (nested block syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
label: {
|
label: {
|
||||||
import('',);
|
import('./empty_FIXTURE.js',);
|
||||||
};
|
};
|
@ -0,0 +1,32 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-block-labeled.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested block syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
label: {
|
||||||
|
import('./empty_FIXTURE.js', {},);
|
||||||
|
};
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-block.template
|
// - src/dynamic-import/syntax/valid/nested-block.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested block syntax)
|
description: ImportCall trailing comma following first parameter (nested block syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
{
|
{
|
||||||
import('',);
|
import('./empty_FIXTURE.js',);
|
||||||
};
|
};
|
@ -0,0 +1,32 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-block.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested block syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
{
|
||||||
|
import('./empty_FIXTURE.js', {},);
|
||||||
|
};
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-do-while.template
|
// - src/dynamic-import/syntax/valid/nested-do-while.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested do while syntax)
|
description: ImportCall trailing comma following first parameter (nested do while syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
import('',);
|
import('./empty_FIXTURE.js',);
|
||||||
} while (false);
|
} while (false);
|
@ -0,0 +1,32 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-do-while.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested do while syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
do {
|
||||||
|
import('./empty_FIXTURE.js', {},);
|
||||||
|
} while (false);
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-else-braceless.template
|
// - src/dynamic-import/syntax/valid/nested-else-braceless.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested else syntax)
|
description: ImportCall trailing comma following first parameter (nested else syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
if (false) {
|
if (false) {
|
||||||
|
|
||||||
} else import('',);
|
} else import('./empty_FIXTURE.js',);
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-if-braceless.template
|
// - src/dynamic-import/syntax/valid/nested-else-braceless.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested if syntax)
|
description: ImportCall trailing comma following second parameter (nested else syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,13 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
if (false) {
|
||||||
|
|
||||||
if (true) import('',);
|
} else import('./empty_FIXTURE.js', {},);
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-else.template
|
// - src/dynamic-import/syntax/valid/nested-else.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested else syntax)
|
description: ImportCall trailing comma following first parameter (nested else syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,17 +22,13 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
if (false) {
|
if (false) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
import('',);
|
import('./empty_FIXTURE.js',);
|
||||||
}
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-else.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested else syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
if (false) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
import('./empty_FIXTURE.js', {},);
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-function-return.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following first parameter (nested function syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
function fn() {
|
||||||
|
return import('./empty_FIXTURE.js',);
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-function-return.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested function syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
function fn() {
|
||||||
|
return import('./empty_FIXTURE.js', {},);
|
||||||
|
}
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-function-return.template
|
// - src/dynamic-import/syntax/valid/nested-function.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested function syntax)
|
description: ImportCall trailing comma following first parameter (nested function syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
function fn() {
|
function fn() {
|
||||||
return import('',);
|
import('./empty_FIXTURE.js',);
|
||||||
}
|
}
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-function.template
|
// - src/dynamic-import/syntax/valid/nested-function.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested function syntax)
|
description: ImportCall trailing comma following second parameter (nested function syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
function fn() {
|
function fn() {
|
||||||
import('',);
|
import('./empty_FIXTURE.js', {},);
|
||||||
}
|
}
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-arrow-assignment-expression.template
|
// - src/dynamic-import/syntax/valid/nested-if-braceless.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested arrow syntax)
|
description: ImportCall trailing comma following first parameter (nested if syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,13 +22,9 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
if (true) import('./empty_FIXTURE.js',);
|
||||||
|
|
||||||
let f = () => import('',);
|
|
@ -0,0 +1,30 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-if-braceless.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested if syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
if (true) import('./empty_FIXTURE.js', {},);
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-if.template
|
// - src/dynamic-import/syntax/valid/nested-if.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested if syntax)
|
description: ImportCall trailing comma following first parameter (nested if syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
if (true) {
|
if (true) {
|
||||||
import('',);
|
import('./empty_FIXTURE.js',);
|
||||||
}
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-if.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested if syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
if (true) {
|
||||||
|
import('./empty_FIXTURE.js', {},);
|
||||||
|
}
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-while.template
|
// - src/dynamic-import/syntax/valid/nested-while.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested while syntax)
|
description: ImportCall trailing comma following first parameter (nested while syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated]
|
flags: [generated]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,17 +22,13 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
let x = 0;
|
let x = 0;
|
||||||
while (!x) {
|
while (!x) {
|
||||||
x++;
|
x++;
|
||||||
import('',);
|
import('./empty_FIXTURE.js',);
|
||||||
};
|
};
|
@ -0,0 +1,34 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-while.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested while syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
let x = 0;
|
||||||
|
while (!x) {
|
||||||
|
x++;
|
||||||
|
import('./empty_FIXTURE.js', {},);
|
||||||
|
};
|
@ -0,0 +1,33 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-with-expression.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following first parameter (nested with syntax in the expression position)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated, noStrict]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
with (import('./empty_FIXTURE.js',)) {
|
||||||
|
assert.sameValue(then, Promise.prototype.then);
|
||||||
|
assert.sameValue(constructor, Promise);
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/nested-with-expression.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (nested with syntax in the expression position)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated, noStrict]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
|
||||||
|
2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
|
||||||
|
3. Let argRef be the result of evaluating AssignmentExpression.
|
||||||
|
4. Let specifier be ? GetValue(argRef).
|
||||||
|
5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
|
||||||
|
6. Let specifierString be ToString(specifier).
|
||||||
|
7. IfAbruptRejectPromise(specifierString, promiseCapability).
|
||||||
|
8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
|
||||||
|
9. Return promiseCapability.[[Promise]].
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
with (import('./empty_FIXTURE.js', {},)) {
|
||||||
|
assert.sameValue(then, Promise.prototype.then);
|
||||||
|
assert.sameValue(constructor, Promise);
|
||||||
|
}
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-with.template
|
// - src/dynamic-import/syntax/valid/nested-with.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested with syntax)
|
description: ImportCall trailing comma following first parameter (nested with syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated, noStrict]
|
flags: [generated, noStrict]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,15 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
|
||||||
|
|
||||||
with ({}) {
|
with ({}) {
|
||||||
import('',);
|
import('./empty_FIXTURE.js',);
|
||||||
}
|
}
|
@ -1,14 +1,11 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
// This file was procedurally generated from the following sources:
|
||||||
// - src/dynamic-import/not-extensible-no-trailing-comma.case
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
// - src/dynamic-import/syntax/invalid/nested-with-expression.template
|
// - src/dynamic-import/syntax/valid/nested-with.template
|
||||||
/*---
|
/*---
|
||||||
description: ImportCall is not extensible - trailing comma (nested with syntax in the expression position)
|
description: ImportCall trailing comma following second parameter (nested with syntax)
|
||||||
esid: sec-import-call-runtime-semantics-evaluation
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
features: [dynamic-import]
|
features: [import-assertions, dynamic-import]
|
||||||
flags: [generated, noStrict]
|
flags: [generated, noStrict]
|
||||||
negative:
|
|
||||||
phase: parse
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
info: |
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression )
|
import( AssignmentExpression )
|
||||||
@ -25,13 +22,11 @@ info: |
|
|||||||
|
|
||||||
|
|
||||||
ImportCall :
|
ImportCall :
|
||||||
import( AssignmentExpression[+In, ?Yield] )
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
Forbidden Extensions
|
|
||||||
|
|
||||||
- ImportCall must not be extended.
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
$DONOTEVALUATE();
|
with ({}) {
|
||||||
|
import('./empty_FIXTURE.js', {},);
|
||||||
with (import('',)) {}
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-first.case
|
||||||
|
// - src/dynamic-import/syntax/valid/top-level.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following first parameter (top level syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
import('./empty_FIXTURE.js',);
|
@ -0,0 +1,20 @@
|
|||||||
|
// This file was procedurally generated from the following sources:
|
||||||
|
// - src/dynamic-import/trailing-comma-second.case
|
||||||
|
// - src/dynamic-import/syntax/valid/top-level.template
|
||||||
|
/*---
|
||||||
|
description: ImportCall trailing comma following second parameter (top level syntax)
|
||||||
|
esid: sec-import-call-runtime-semantics-evaluation
|
||||||
|
features: [import-assertions, dynamic-import]
|
||||||
|
flags: [generated]
|
||||||
|
info: |
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
|
||||||
|
|
||||||
|
---*/
|
||||||
|
|
||||||
|
import('./empty_FIXTURE.js', {},);
|
1
test/rejected.js
Normal file
1
test/rejected.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
Promise.reject("anything");
|
Loading…
x
Reference in New Issue
Block a user