diff options
Diffstat (limited to 'js/src/tests/test262/language/module-code/early-dup-export-as-star-as.js')
-rw-r--r-- | js/src/tests/test262/language/module-code/early-dup-export-as-star-as.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/module-code/early-dup-export-as-star-as.js b/js/src/tests/test262/language/module-code/early-dup-export-as-star-as.js new file mode 100644 index 0000000000..ad351b5124 --- /dev/null +++ b/js/src/tests/test262/language/module-code/early-dup-export-as-star-as.js @@ -0,0 +1,20 @@ +// |reftest| error:SyntaxError module +// 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'; |