tor-browser

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

export-expname-from-binding-string.js (714B)


      1 // |reftest| module
      2 // Copyright (C) 2020 Bradley Farias. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 description: >
      6  ExportSpecifier : ModuleExportName
      7  esid: prod-ExportSpecifier
      8 info: |
      9  ExportFromClause :
     10    NamedExports[+From]
     11 
     12  ExportSpecifier[From] :
     13    IdentifierName `as` ModuleExportName
     14 
     15  ModuleExportName : StringLiteral
     16 
     17 flags: [module]
     18 features: [arbitrary-module-namespace-names]
     19 ---*/
     20 import * as Scouts from "./export-expname-from-binding-string.js";
     21 export { Mercury as "☿" } from "./export-expname_FIXTURE.js";
     22 
     23 assert.sameValue(Scouts.Mercury, undefined);
     24 assert.sameValue(Scouts["☿"], globalThis.Mercury);
     25 
     26 reportCompare(0, 0);