Debian Codegraph @

js/src/tests/test262/language/module-code/import-attributes/early-dup-attribute-key-import-nobinding.js

raw
1 // |reftest| shell-option(--enable-import-attributes) skip-if(!xulRuntime.shell) error:SyntaxError module -- requires shell-options
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 without 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 './import-attribute-2_FIXTURE.js' with {
23 type: 'json',
24 'typ\u0065': ''
25 };