tor-browser

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

instn-iee-trlng-comma.js (816B)


      1 // |reftest| module
      2 // Copyright (C) 2016 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    ExportsList in ExportDeclaration may include a trailing comma
      7 esid: sec-moduledeclarationinstantiation
      8 info: |
      9    [...]
     10    9. For each ExportEntry Record e in module.[[IndirectExportEntries]], do
     11       a. Let resolution be ? module.ResolveExport(e.[[ExportName]], « », « »).
     12       [...]
     13 flags: [module]
     14 ---*/
     15 
     16 export { a , } from './instn-iee-trlng-comma_FIXTURE.js';
     17 export { a as b , } from './instn-iee-trlng-comma_FIXTURE.js';
     18 
     19 import { a, b } from './instn-iee-trlng-comma.js';
     20 
     21 assert.sameValue(a, 333, 'comma following named export');
     22 assert.sameValue(b, 333, 'comma following re-named export');
     23 
     24 reportCompare(0, 0);