Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/string/unicode-escape-nls-err-double.js

raw
1 // Copyright (C) 2017 Valerie Young. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: prod-StringLiteral
6 description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters)
7 info: |
8 StringLiteral::
9 "DoubleStringCharacters opt"
10 'SingleStringCharacters opt'
11
12 DoubleStringCharacters::
13 DoubleStringCharacter DoubleStringCharacters opt
14
15 DoubleStringCharacter::
16 SourceCharacter but not one of " or \ or LineTerminator
17 \ EscapeSequence
18 LineContinuation
19
20 EscapeSequence::
21 CharacterEscapeSequence
22 0 [lookahead ∉ DecimalDigit]
23 HexEscapeSequence
24 UnicodeEscapeSequence
25
26 UnicodeEscapeSequence ::
27 uHex4Digits
28 u{CodePoint}
29
30 CodePoint ::
31 HexDigit but only if MV of HexDigits ≤ 0x10FFFF
32 CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF
33
34 CodePointDigits ::
35 HexDigit
36 CodePointDigitsHexDigit
37
38 HexDigit :: one of
39 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
40
41 features: [numeric-separator-literal]
42 negative:
43 phase: parse
44 type: SyntaxError
45 ---*/
46
47 throw "Test262: This statement should not be evaluated.";
48
49 "\u{1F_639}"