tor-browser

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

import-attribute-many.js (1103B)


      1 // |reftest| error:SyntaxError module
      2 // Copyright (C) 2021 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    WithClause in ImportDeclaration may contain multiple WithEntries
      7 esid: sec-modules
      8 info: |
      9  ImportDeclaration:
     10    import ModuleSpecifier[no LineTerminator here] WithClause;
     11 
     12  WithClause:
     13    AttributesKeyword {}
     14    AttributesKeyword {WithEntries ,opt}
     15 
     16  WithEntries:
     17    AttributeKey : StringLiteral
     18    AttributeKey : StringLiteral , WithEntries
     19 
     20  AttributeKey:
     21    IdentifierName
     22    StringLiteral
     23 negative:
     24  phase: resolution
     25  type: SyntaxError
     26 features: [import-attributes, globalThis]
     27 flags: [module]
     28 ---*/
     29 
     30 $DONOTEVALUATE();
     31 
     32 import "./ensure-linking-error_FIXTURE.js";
     33 
     34 import x from './import-attribute-1_FIXTURE.js' with {test262_1:'',test262_2:'',test262_3:'',test262_4:''};
     35 import './import-attribute-2_FIXTURE.js' with {test262_1:'',test262_2:'',test262_3:'',test262_4:''};
     36 export * from './import-attribute-3_FIXTURE.js' with {test262_1:'',test262_2:'',test262_3:'',test262_4:''};