Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / early-dup-export-dflt-id.js
blob4ebb6baa0df22a64e4b954b445fc3ad7d9885cce
1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2016 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 default x;
20 export { y as default };