Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/regexp/unicode-escape-nls-err.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-Pattern
6 description: NumericLiteralSeperator disallowed in unicode CodePoint sequence
7 info: |
8 Pattern[U, N]::
9 Disjunction[?U, ?N]
10
11 Disjunction[U, N]::
12 Alternative[?U, ?N]
13 Alternative[?U, ?N]|Disjunction[?U, ?N]
14
15 Alternative[U, N]::
16 [empty]
17 Alternative[?U, ?N]Term[?U, ?N]
18
19 Term[U, N]::
20 Assertion[?U, ?N]
21 Atom[?U, ?N]
22 Atom[?U, ?N]Quantifier
23
24 Atom[U, N]::
25 PatternCharacter
26 .
27 \AtomEscape[?U, ?N]
28 CharacterClass[?U]
29 (GroupSpecifier[?U]Disjunction[?U, ?N])
30 (?:Disjunction[?U, ?N])
31
32 AtomEscape[U, N]::
33 DecimalEscape
34 CharacterClassEscape[?U]
35 CharacterEscape[?U]
36 [+N]kGroupName[?U]
37
38 CharacterEscape[U]::
39 ControlEscape
40 cControlLetter
41 0[lookahead ∉ DecimalDigit]
42 HexEscapeSequence
43 RegExpUnicodeEscapeSequence[?U]
44 IdentityEscape[?U]
45
46 RegExpUnicodeEscapeSequence[U]::
47 [+U]uLeadSurrogate\uTrailSurrogate
48 [+U]uLeadSurrogate
49 [+U]uTrailSurrogate
50 [+U]uNonSurrogate
51 [~U]uHex4Digits
52 [+U]u{CodePoint}
53
54 CodePoint ::
55 HexDigit but only if MV of HexDigits ≤ 0x10FFFF
56 CodePointDigits but only if MV of HexDigits ≤ 0x10FFFF
57
58 CodePointDigits ::
59 HexDigit
60 CodePointDigitsHexDigit
61
62 HexDigit :: one of
63 0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F
64
65 features: [numeric-separator-literal]
66 negative:
67 phase: parse
68 type: SyntaxError
69 ---*/
70
71 throw "Test262: This statement should not be evaluated.";
72
73 /\u{1F_639}/u;