tor-browser

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

invalid-defer-default.js (806B)


      1 // |reftest| skip error:SyntaxError -- 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  `import defer` cannot be used with default imports
      9 info: |
     10  ImportDeclaration :
     11    `import` ImportClause FromClause `;`
     12    `import` `defer` NameSpaceImport FromClause `;`
     13    `import` ModuleSpecifier `;`
     14 
     15  ImportClause :
     16    ImportedDefaultBinding
     17    NameSpaceImport
     18    NamedImports
     19    ImportedDefaultBinding `,` NameSpaceImport
     20    ImportedDefaultBinding `,` NamedImports
     21 
     22  NameSpaceImport :
     23    `*` `as` ImportedBinding
     24 
     25 features: [import-defer]
     26 
     27 negative:
     28  phase: parse
     29  type: SyntaxError
     30 ---*/
     31 
     32 $DONOTEVALUATE();
     33 
     34 import defer x from "./dep_FIXTURE.js";