| 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-regular-expressions-patterns |
| 5 |
es6id: B.1.4 |
| 6 |
description: Quantifiable assertions disallowed with `u` flag |
| 7 |
info: | |
| 8 |
The `u` flag precludes quantifiable assertions (even when Annex B is |
| 9 |
honored) |
| 10 |
|
| 11 |
Term[U] :: |
| 12 |
[~U] QuantifiableAssertion Quantifier |
| 13 |
negative: |
| 14 |
phase: parse |
| 15 |
type: SyntaxError |
| 16 |
---*/ |
| 17 |
|
| 18 |
throw "Test262: This statement should not be evaluated."; |
| 19 |
|
| 20 |
/.(?=.)?/u; |