Debian Codegraph @

js/src/tests/test262/language/expressions/dynamic-import/syntax/valid/nested-async-function-import-source-empty-str-is-valid-assign-expr.js

raw
1 // |reftest| skip -- source-phase-imports,source-phase-imports-module-source is not supported
2 // This file was procedurally generated from the following sources:
3 // - src/dynamic-import/import-source-empty-str-is-valid-assign-expr.case
4 // - src/dynamic-import/syntax/valid/nested-async-function.template
5 /*---
6 description: Calling import.source('') (nested arrow syntax)
7 esid: sec-import-call-runtime-semantics-evaluation
8 features: [source-phase-imports, source-phase-imports-module-source, dynamic-import]
9 flags: [generated]
10 info: |
11 ImportCall :
12 import( AssignmentExpression )
13
14 1. Let referencingScriptOrModule be ! GetActiveScriptOrModule().
15 2. Assert: referencingScriptOrModule is a Script Record or Module Record (i.e. is not null).
16 3. Let argRef be the result of evaluating AssignmentExpression.
17 4. Let specifier be ? GetValue(argRef).
18 5. Let promiseCapability be ! NewPromiseCapability(%Promise%).
19 6. Let specifierString be ToString(specifier).
20 7. IfAbruptRejectPromise(specifierString, promiseCapability).
21 8. Perform ! HostImportModuleDynamically(referencingScriptOrModule, specifierString, promiseCapability).
22 9. Return promiseCapability.[[Promise]].
23
24 ---*/
25
26 async function f() {
27 import.source('<module source>');
28 }
29
30
31 reportCompare(0, 0);