Debian Codegraph @

js/src/tests/test262/language/import/dup-bound-names.js

raw
1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2015 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 es6id: 15.2.1.1
6 description: >
7 It is a Syntax Error if the BoundNames of ImportDeclaration contains any
8 duplicate entries.
9 flags: [module]
10 negative:
11 phase: parse
12 type: SyntaxError
13 ---*/
14
15 $DONOTEVALUATE();
16
17 import { x, y as x } from 'z';