Debian Codegraph @

js/src/tests/test262/language/expressions/template-literal/unicode-escape-nls-err.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2017 Valerie Young. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: prod-Template
7 description: NumericLiteralSeperator disallowed in unicode CodePoint sequence
8 info: |
9 Template ::
10 NoSubstitutionTemplate
11 TemplateHead
12
13 NoSubstitutionTemplate ::
14 `TemplateCharactersopt`
15
16 TemplateCharacters ::
17 TemplateCharacterTemplateCharactersopt
18
19 TemplateCharacter ::
20 $[lookahead ≠ {]
21 \EscapeSequence
22 \NotEscapeSequence
23 LineContinuation
24 LineTerminatorSequence
25 SourceCharacterbut not one of ` or \ or $ or LineTerminator
26
27 EscapeSequence ::
28 CharacterEscapeSequence
29 0 [lookahead ∉ DecimalDigit]
30 HexEscapeSequence
31 UnicodeEscapeSequence
32
33 UnicodeEscapeSequence ::
34 uHex4Digits
35 u{CodePoint}
36
37 CodePoint ::
38 HexDigit but only if MV of HexDigits ≤ 0x10FFFF
39 CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF
40
41 CodePointDigits ::
42 HexDigit
43 CodePointDigitsHexDigit
44
45 HexDigit :: one of
46 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
47
48 features: [numeric-separator-literal]
49 negative:
50 phase: parse
51 type: SyntaxError
52 ---*/
53
54 $DONOTEVALUATE();
55
56 `\u{1F_639}`;