Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/regexp/u-invalid-legacy-octal-escape.js

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-patterns
5 es6id: 21.2.1
6 description: Legacy Octal Escape Sequence not supported with `u` flag
7 info: |
8 The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective
9 of the presence of Annex B extensions.
10
11 CharacterEscape [U] ::
12 ControlEscape
13 c ControlLetter
14 0[lookahead ∉ DecimalDigit]
15 HexEscapeSequence
16 RegExpUnicodeEscapeSequence[?U]
17 IdentityEscape[?U]
18 negative:
19 phase: parse
20 type: SyntaxError
21 ---*/
22
23 throw "Test262: This statement should not be evaluated.";
24
25 /\1/u;