tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

2nd-param-await-expr.js (788B)


      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 - AwaitExpression
      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 (async function () {
     17  return import('./2nd-param_FIXTURE.js', await undefined);
     18 }())
     19  .then(function(module) {
     20    assert.sameValue(module.default, 262);
     21  })
     22  .then($DONE, $DONE);