Debian Codegraph @

js/src/tests/test262/language/expressions/dynamic-import/escape-sequence-import.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
7 description: >
8 "import" 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 CallExpression :
20 MemberExpressionArguments
21 SuperCall
22 ImportCall
23 CallExpressionArguments
24 CallExpressionTemplateLiteral
25
26 ImportCall :
27 import( AssignmentExpression )
28 negative:
29 phase: parse
30 type: SyntaxError
31 features: [dynamic-import]
32 ---*/
33
34 $DONOTEVALUATE();
35
36 im\u0070ort('./empty_FIXTURE.js');