Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/regexp/invalid-braced-quantifier-exact.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: Braced quantifier in an Atom position (exact count)
7 info: |
8 SyntaxCharacter :: one of
9 ^$\.*+?()[]{}|
10
11 PatternCharacter ::
12 SourceCharacter but not SyntaxCharacter
13
14 Although Annex B extends the definition of Term to include
15 ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier
16 pattern with a higher precedence. This makes the SyntaxError for such
17 patterns consistent between Annex-B and non-Annex-B environments.
18 negative:
19 phase: parse
20 type: SyntaxError
21 ---*/
22
23 throw "Test262: This statement should not be evaluated.";
24
25 /{2}/;