Debian Codegraph @

js/src/tests/test262/language/expressions/dynamic-import/syntax/valid/nested-async-function-nested-imports.js

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