keith_miller@apple.com | bcc77f2 | 2016-07-15 06:03:25 +0000 | [diff] [blame] | 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 (lower-bounds) |
| 7 | info: | |
| 8 | SyntaxCharacter :: one of |
| 9 | ^$\.*+?()[]{}| |
| 10 | |
| 11 | PatternCharacter :: |
| 12 | SourceCharacterbut 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: SyntaxError |
| 19 | ---*/ |
| 20 | |
| 21 | /{2,}/; |