mirror of https://github.com/tc39/test262.git
Regenerate tests
This commit is contained in:
parent
54689ffa69
commit
1846d33c29
|
@ -16,7 +16,7 @@ _general places it can be found as a CallExpression_
|
|||
- [x] labeled blocks
|
||||
- [x] blocks
|
||||
- [x] do while
|
||||
- [ ] else braceless
|
||||
- [x] else braceless
|
||||
- [x] else block
|
||||
- [x] if braceless
|
||||
- [x] if block
|
||||
|
|
|
@ -1,49 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-arrow.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested arrow)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
let f = () => {
|
||||
import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
};
|
||||
|
||||
f();
|
|
@ -1,49 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-async-function-await.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested in async function, awaited)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
async function f() {
|
||||
await import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
}
|
||||
|
||||
f();
|
|
@ -1,50 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-async-function.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested in async function)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
async function f() {
|
||||
import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
}
|
||||
|
||||
f();
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-async-function-return-await.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested in async function, returns awaited)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
async function f() {
|
||||
return await import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
}
|
||||
|
||||
f();
|
|
@ -1,47 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-block.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested block)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
{
|
||||
import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
};
|
|
@ -1,47 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-block-labeled.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested block syntax)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
label: {
|
||||
import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
};
|
|
@ -1,47 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-do-while.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested do while syntax)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
do {
|
||||
import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
} while (false);
|
|
@ -1,49 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-else.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested else)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
if (false) {
|
||||
|
||||
} else {
|
||||
import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-function.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested function)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
function f() {
|
||||
import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
}
|
||||
f();
|
|
@ -1,47 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-if.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested if)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
if (true) {
|
||||
import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/nested-while.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (nested while)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
let x = 0;
|
||||
while (!x) {
|
||||
x++;
|
||||
import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
||||
};
|
|
@ -1,45 +0,0 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/instn-iee-err-not-found.case
|
||||
// - src/dynamic-import/catch/top-level.template
|
||||
/*---
|
||||
description: IndirectExportEntries validation - undefined imported bindings (top level)
|
||||
esid: sec-import-call-runtime-semantics-evaluation
|
||||
features: [dynamic-import]
|
||||
flags: [generated, async]
|
||||
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]].
|
||||
|
||||
|
||||
[...]
|
||||
9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
|
||||
a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
|
||||
b. If resolution is null or resolution is "ambiguous", throw a
|
||||
SyntaxError exception.
|
||||
[...]
|
||||
|
||||
15.2.1.16.3 ResolveExport
|
||||
|
||||
[...]
|
||||
9. Let starResolution be null.
|
||||
10. For each ExportEntry Record e in module.[[StarExportEntries]], do
|
||||
[...]
|
||||
11. Return starResolution.
|
||||
|
||||
---*/
|
||||
|
||||
import('./instn-iee-err-not-found-empty_FIXTURE.js').catch(error => {
|
||||
|
||||
assert.sameValue(error.name, 'SyntaxError');
|
||||
|
||||
}).then($DONE, $DONE);
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-arrow-assignment-expression.template
|
||||
/*---
|
||||
description: Calling import('') (nested arrow syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-arrow.template
|
||||
/*---
|
||||
description: Calling import('') (nested arrow syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-block.template
|
||||
/*---
|
||||
description: Calling import('') (nested block syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-block-labeled.template
|
||||
/*---
|
||||
description: Calling import('') (nested block syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-do-while.template
|
||||
/*---
|
||||
description: Calling import('') (nested do while syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-else-braceless.template
|
||||
/*---
|
||||
description: Calling import('') (nested else syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-else.template
|
||||
/*---
|
||||
description: Calling import('') (nested else syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-function.template
|
||||
/*---
|
||||
description: Calling import('') (nested function syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-function-return.template
|
||||
/*---
|
||||
description: Calling import('') (nested function syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-if-braceless.template
|
||||
/*---
|
||||
description: Calling import('') (nested if syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-if.template
|
||||
/*---
|
||||
description: Calling import('') (nested if syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/nested-while.template
|
||||
/*---
|
||||
description: Calling import('') (nested while syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/empty-str-arg.case
|
||||
// - src/dynamic-import/empty-str-is-valid-assign-expr.case
|
||||
// - src/dynamic-import/syntax/valid/top-level.template
|
||||
/*---
|
||||
description: Calling import('') (top level syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-arrow-assignment-expression.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested arrow)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-arrow.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested arrow)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-async-function-await.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested in async function, awaited)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-async-function.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested in async function)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-async-function-return-await.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested in async function, returns awaited)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-block.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested block)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-do-while.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested do while syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-else.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested else)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-function.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested function)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-if-braceless.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested if syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-if.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested if)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-while.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested while)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/nested-block-labeled.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (nested block syntax)
|
|
@ -1,5 +1,5 @@
|
|||
// This file was procedurally generated from the following sources:
|
||||
// - src/dynamic-import/eval-gtbdng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/eval-gtbndng-indirect-update-dflt.case
|
||||
// - src/dynamic-import/default/top-level.template
|
||||
/*---
|
||||
description: Modifications to default binding that occur after dependency has been evaluated are reflected in local binding (top level)
|
Loading…
Reference in New Issue