tor-browser

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

instn-star-id-name.js (1307B)


      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    Namespace object reports properties for any valid exported IdentifierName.
      7 esid: sec-imports
      8 info: |
      9    [...]
     10    5. For each ExportEntry Record e in module.[[LocalExportEntries]], do
     11       a. Assert: module provides the direct binding for this export.
     12       b. Append e.[[ExportName]] to exportedNames.
     13    [...]
     14 flags: [module]
     15 ---*/
     16 
     17 var _if = null;
     18 var _import = null;
     19 var _export = null;
     20 var _await = null;
     21 var _arguments = null;
     22 var _eval = null;
     23 var _default = null;
     24 var as = null;
     25 
     26 export {
     27    _if as if,
     28    _import as import,
     29    _export as export,
     30    _await as await,
     31    _arguments as arguments,
     32    _eval as eval,
     33    _default as default,
     34    as as as
     35  };
     36 
     37 import * as ns from './instn-star-id-name.js';
     38 
     39 assert('if' in ns, 'property name: if');
     40 assert('import' in ns, 'property name: import');
     41 assert('export' in ns, 'property name: export');
     42 assert('await' in ns, 'property name: await');
     43 assert('arguments' in ns, 'property name: arguments');
     44 assert('eval' in ns, 'property name: eval');
     45 assert('default' in ns, 'property name: default');
     46 assert('as' in ns, 'property name: as');
     47 
     48 reportCompare(0, 0);