Debian Codegraph @

js/src/tests/test262/language/expressions/import.meta/syntax/escape-sequence-import.js

raw
1 // |reftest| error:SyntaxError module
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
7 description: >
8 "import" in import.meta must not contain escape sequences.
9 info: |
10 5.1.5 Grammar Notation
11
12 Terminal symbols are shown in fixed width
13 font, both in the productions of the grammars and throughout this specification whenever the
14 text directly refers to such a terminal symbol. These are to appear in a script exactly as
15 written. All terminal symbol code points specified in this way are to be understood as the
16 appropriate Unicode code points from the Basic Latin range, as opposed to any similar-looking
17 code points from other Unicode ranges.
18
19 12.3 Left-Hand-Side Expressions
20 MetaProperty:
21 NewTarget
22 ImportMeta
23
24 ImportMeta:
25 import.meta
26 flags: [module]
27 negative:
28 phase: parse
29 type: SyntaxError
30 features: [import.meta]
31 ---*/
32
33 $DONOTEVALUATE();
34
35 im\u0070ort.meta;