Debian Codegraph @

js/src/tests/test262/language/literals/regexp/u-invalid-extended-pattern-char.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-patterns
6 es6id: 21.2.1
7 description: Quantifiable assertions disallowed with `u` flag
8 info: |
9 The `u` flag precludes the use of extended pattern characters irrespective
10 of the presence of Annex B extensions.
11
12 Term[U] ::
13 [~U] ExtendedAtom
14 negative:
15 phase: parse
16 type: SyntaxError
17 ---*/
18
19 $DONOTEVALUATE();
20
21 /{/u;