Debian Codegraph @

js/src/tests/test262/language/module-code/parse-err-semi-dflt-expr.js

raw
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 default AssignmentExpression" declarations require a trailing
7 semicolon or 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 ---*/
25
26 $DONOTEVALUATE();
27
28 export default null null;