Debian Codegraph @

js/src/tests/test262/language/literals/string/unicode-escape-nls-err-double.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-StringLiteral
7 description: NumericLiteralSeperator disallowed in unicode CodePoint sequence (DoubleStringCharacters)
8 info: |
9 StringLiteral::
10 "DoubleStringCharacters opt"
11 'SingleStringCharacters opt'
12
13 DoubleStringCharacters::
14 DoubleStringCharacter DoubleStringCharacters opt
15
16 DoubleStringCharacter::
17 SourceCharacter but not one of " or \ or LineTerminator
18 \ EscapeSequence
19 LineContinuation
20
21 EscapeSequence::
22 CharacterEscapeSequence
23 0 [lookahead ∉ DecimalDigit]
24 HexEscapeSequence
25 UnicodeEscapeSequence
26
27 UnicodeEscapeSequence ::
28 uHex4Digits
29 u{CodePoint}
30
31 CodePoint ::
32 HexDigit but only if MV of HexDigits ≤ 0x10FFFF
33 CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF
34
35 CodePointDigits ::
36 HexDigit
37 CodePointDigitsHexDigit
38
39 HexDigit :: one of
40 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
41
42 features: [numeric-separator-literal]
43 negative:
44 phase: parse
45 type: SyntaxError
46 ---*/
47
48 $DONOTEVALUATE();
49
50 "\u{1F_639}"