Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/regexp/u-invalid-extended-pattern-char.js

raw
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: Quantifiable assertions disallowed with `u` flag
7 info: |
8 The `u` flag precludes the use of extended pattern characters irrespective
9 of the presence of Annex B extensions.
10
11 Term[U] ::
12 [~U] ExtendedAtom
13 negative:
14 phase: parse
15 type: SyntaxError
16 ---*/
17
18 throw "Test262: This statement should not be evaluated.";
19
20 /{/u;