Debian Codegraph @

js/src/tests/test262/language/literals/regexp/u-invalid-legacy-octal-escape.js

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