Debian Codegraph @

js/src/tests/test262/language/literals/regexp/u-invalid-range-lookahead.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-regular-expressions-patterns
6 es6id: B.1.4
7 description: Quantifiable assertions disallowed with `u` flag
8 info: |
9 The `u` flag precludes quantifiable assertions (even when Annex B is
10 honored)
11
12 Term[U] ::
13 [~U] QuantifiableAssertion Quantifier
14 negative:
15 phase: parse
16 type: SyntaxError
17 ---*/
18
19 $DONOTEVALUATE();
20
21 /.(?=.){2,3}/u;