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