Debian Codegraph @

js/src/tests/test262/language/literals/regexp/u-invalid-oob-decimal-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-pattern-semantics
6 es6id: 21.2.2
7 description: Out-of-bounds decimal escapes
8 info: |
9 1. Evaluate DecimalEscape to obtain an integer n.
10 2. If n>NcapturingParens, throw a SyntaxError exception.
11
12 When the "unicode" flag is set, this algorithm is honored irrespective of
13 the presence of Annex B extensions.
14 negative:
15 phase: parse
16 type: SyntaxError
17 ---*/
18
19 $DONOTEVALUATE();
20
21 /\8/u;