tor-browser

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

instn-once.js (1311B)


      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: Module is linked exactly once
      6 esid: sec-moduledeclarationlinking
      7 info: |
      8  Link ( ) Concrete Method
      9    [...]
     10    4. Let result be InnerModuleLinking(module, stack, 0).
     11    [...]
     12 
     13  InnerModuleLinking( module, stack, index )
     14    [...]
     15    2. If module.[[Status]] is "linking", "linked", or "evaluated", then
     16      a. Return index.
     17    3. Assert: module.[[Status]] is "unlinked".
     18    4. Set module.[[Status]] to "linking".
     19    [...]
     20    9. For each String required that is an element of module.[[RequestedModules]], do
     21      a. Let requiredModule be ? HostResolveImportedModule(module, required).
     22      b. Set index to ? InnerModuleLinking(requiredModule, stack, index).
     23    [...]
     24 flags: [module]
     25 features: [export-star-as-namespace-from-module]
     26 ---*/
     27 
     28 import {} from './instn-once.js';
     29 import './instn-once.js';
     30 import * as ns1 from './instn-once.js';
     31 import dflt1 from './instn-once.js';
     32 export {} from './instn-once.js';
     33 import dflt2, {} from './instn-once.js';
     34 export * from './instn-once.js';
     35 export * as ns2 from './instn-once.js';
     36 import dflt3, * as ns from './instn-once.js';
     37 export default null;
     38 
     39 let x;
     40 
     41 reportCompare(0, 0);