Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / parse-err-semi-export-star.js
blobc74204e5e2066dd53f113d0cbd96f53897f7a9b5
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 description: >
6     "export *" declarations require a trailing semicolon or LineTerminator
7 esid: sec-exports
8 info: |
9     ExportDeclaration:
10       export * FromClause;
11       export * as IdentifierName FromClause;
12       export NamedExports FromClause;
13       export NamedExports;
14       export VariableStatement
15       export Declaration
16       export default HoistableDeclaration[Default]
17       export default ClassDeclaration[Default]
18       export default [lookahead ∉ { function, class }] AssignmentExpression[In];
19 negative:
20   phase: parse
21   type: SyntaxError
22 flags: [module]
23 features: [export-star-as-namespace-from-module]
24 ---*/
26 $DONOTEVALUATE();
28 export * from './parse-err-semi-export-star.js' null;