tor-browser

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

valid-default-binding-named-defer.js (766B)


      1 // |reftest| skip module -- import-defer is not supported
      2 // Copyright (C) 2024 Igalia, S.L. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-imports
      7 description: >
      8  `defer` is a valid name for default imports
      9 info: |
     10  ImportDeclaration :
     11    `import` ImportClause FromClause `;`
     12    `import` `defer` NameSpaceImport FromClause `;`
     13    `import` ModuleSpecifier `;`
     14 
     15  ImportClause :
     16    ImportedDefaultBinding
     17    ...
     18 
     19  ImportedDefaultBinding :
     20    ImportedBinding
     21 
     22  ImportedBinding :
     23    BindingIdentifier[~Yield, +Await]
     24 
     25 flags: [module]
     26 features: [import-defer]
     27 ---*/
     28 
     29 import defer from "./dep_FIXTURE.js";
     30 
     31 assert.sameValue(defer, 1, "`defer` is the default export binding");
     32 
     33 reportCompare(0, 0);