2016-05-03 20:15:25 +02:00
|
|
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
esid: sec-patterns
|
|
|
|
es6id: 21.2.1
|
|
|
|
description: Braced quantifier in an Atom position (exact count)
|
|
|
|
info: |
|
|
|
|
SyntaxCharacter :: one of
|
|
|
|
^$\.*+?()[]{}|
|
|
|
|
|
|
|
|
PatternCharacter ::
|
2017-10-16 18:46:28 +02:00
|
|
|
SourceCharacter but not SyntaxCharacter
|
2016-05-03 20:15:25 +02:00
|
|
|
|
|
|
|
Although Annex B extends the definition of Term to include
|
|
|
|
ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier
|
|
|
|
pattern with a higher precedence. This makes the SyntaxError for such
|
|
|
|
patterns consistent between Annex-B and non-Annex-B environments.
|
2016-01-31 00:57:28 +01:00
|
|
|
negative:
|
2017-12-03 06:06:42 +01:00
|
|
|
phase: parse
|
2016-01-31 00:57:28 +01:00
|
|
|
type: SyntaxError
|
2016-05-03 20:15:25 +02:00
|
|
|
---*/
|
|
|
|
|
2018-10-11 16:59:24 +02:00
|
|
|
$DONOTEVALUATE();
|
2017-04-29 22:31:08 +02:00
|
|
|
|
2016-05-03 20:15:25 +02:00
|
|
|
/{2}/;
|