Debian Codegraph @

js/src/tests/test262/language/expressions/dynamic-import/syntax/valid/nested-async-gen-await-import-attributes-trailing-comma-first.js

raw
1 // |reftest| shell-option(--enable-import-attributes) skip-if(!xulRuntime.shell) -- requires shell-options
2 // This file was procedurally generated from the following sources:
3 // - src/dynamic-import/import-attributes-trailing-comma-first.case
4 // - src/dynamic-import/syntax/valid/nested-async-generator-await.template
5 /*---
6 description: ImportCall trailing comma following first parameter (nested in async generator, awaited)
7 esid: sec-import-call-runtime-semantics-evaluation
8 features: [import-attributes, dynamic-import, async-iteration]
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 ImportCall :
26 import( AssignmentExpression[+In, ?Yield, ?Await] ,opt )
27 import( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt )
28
29 ---*/
30
31 async function * f() {
32 await import('./empty_FIXTURE.js',)
33 }
34
35 reportCompare(0, 0);