Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / early-dup-export-id-as.js
blobf8ab423a4d2f127896ac76bb8f6a848c018b975c
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 esid: sec-module-semantics-static-semantics-early-errors
6 es6id: 15.2.1.1
7 description: >
8     It is a Syntax Error if the ExportedNames of ModuleItemList contains any
9     duplicate entries.
10 flags: [module]
11 negative:
12   phase: parse
13   type: SyntaxError
14 ---*/
16 $DONOTEVALUATE();
18 var x, y;
19 export { x as z };
20 export { y as z };