Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / export-expname-string-binding.js
blobe7b012dbef939e74622023c13fd51ca53905e489
1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2020 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 description: >
6   ExportDeclaration : `export` NamedExports `;`
7   esid: sec-exports-static-semantics-early-errors
8 info: |
9   ExportDeclaration : `export` NamedExports `;`
11   It is a Syntax Error if ReferencedBindings of |NamedExports| contains any
12   |ModuleExportName|.
13 flags: [module]
14 features: [arbitrary-module-namespace-names]
15 negative:
16   phase: parse
17   type: SyntaxError
18 ---*/
20 $DONOTEVALUATE();
22 export { "foo" as "bar" }
24 function foo() {}