Debian Codegraph @

js/src/tests/test262/language/expressions/import.meta/syntax/goal-script.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2018 André Bargull. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-left-hand-side-expressions-static-semantics-early-errors
7 description: >
8 An early Syntax Error is thrown when the syntactic goal symbol is Script.
9 info: |
10 It is an early Syntax Error if Module is not the syntactic goal symbol.
11 negative:
12 phase: parse
13 type: SyntaxError
14 features: [import.meta]
15 ---*/
16
17 $DONOTEVALUATE();
18
19 import.meta;