2nd-param-await-ident.js (778B)
1 // |reftest| async 2 // Copyright (C) 2021 the V8 project authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 /*--- 5 description: > 6 ImportCall parameter list forwards the Await production parameter - IdentifierReference 7 esid: sec-import-call-runtime-semantics-evaluation 8 info: | 9 ImportCall[Yield, Await]: 10 import ( AssignmentExpression[+In, ?Yield, ?Await] ,opt ) 11 import ( AssignmentExpression[+In, ?Yield, ?Await] , AssignmentExpression[+In, ?Yield, ?Await] ,opt ) 12 features: [dynamic-import, import-attributes, async-functions] 13 flags: [async] 14 ---*/ 15 16 function await() {} 17 18 import('./2nd-param_FIXTURE.js', await(undefined)) 19 .then(function(module) { 20 assert.sameValue(module.default, 262); 21 }) 22 .then($DONE, $DONE);