Debian Codegraph @

js/src/tests/test262/language/literals/regexp/u-invalid-class-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: >
8 ClassEscape does not recognize "class control" patterns
9 info: |
10 ClassEscape[U] ::
11 b
12 [+U] -
13 CharacterClassEscape
14 CharacterEscape[?U]
15
16 The `u` flag precludes the Annex B extension that enables this pattern.
17 negative:
18 phase: parse
19 type: SyntaxError
20 ---*/
21
22 $DONOTEVALUATE();
23
24 /\c0/u;