test262/test/language/module-code/early-dup-export-as-star-as.js
Leo Balter dec4e5df74
Merge pull request #1801 from mathiasbynens/issue-1634
Move `throw "…"` for negative parsing errors to a helper function
2018-11-13 17:23:09 -05:00

20 lines
524 B
JavaScript

// Copyright (C) 2018 Valerie Young. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-module-semantics-static-semantics-early-errors
description: >
It is a Syntax Error if the ExportedNames of ModuleItemList contains any
duplicate entries.
flags: [module]
features: [export-star-as-namespace-from-module]
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
var x;
export { x as z };
export * as z from './early-dup-export-as-star-as.js';