Debian Codegraph @

js/src/tests/test262/language/global-code/export.js

raw
1 // |reftest| error:SyntaxError
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: The `export` declaration may not appear within a ScriptBody
6 esid: sec-scripts
7 negative:
8 phase: parse
9 type: SyntaxError
10 info: |
11 A.5 Scripts and Modules
12
13 Script:
14 ScriptBodyopt
15
16 ScriptBody:
17 StatementList
18 ---*/
19
20 $DONOTEVALUATE();
21
22 export default null;