early-dup-export-dflt-id.js (510B)
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 ---*/ 15 16 $DONOTEVALUATE(); 17 18 var x, y; 19 export default x; 20 export { y as default };