early-dup-attribute-key-import-withbinding.js (687B)
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 may not have duplicate keys (import declaration with binding) 7 esid: sec-modules 8 info: | 9 WithClause: AttributesKeyword { WithEntries,opt } 10 11 - It is a Syntax Error if WithClauseToAttributes of WithClause has two 12 entries a and b such that a.[[Key]] is b.[[Key]]. 13 features: [import-attributes] 14 flags: [module] 15 negative: 16 phase: parse 17 type: SyntaxError 18 ---*/ 19 20 $DONOTEVALUATE(); 21 22 import x from './import-attribute-1_FIXTURE.js' with { 23 type: 'json', 24 'typ\u0065': '' 25 };