Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/non-existent-property-value-Script.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright 2018 Mathias Bynens. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 author: Mathias Bynens
7 description: >
8 Non-existent property values must not be supported in Unicode property
9 escapes.
10 esid: sec-static-semantics-unicodematchproperty-p
11 negative:
12 phase: parse
13 type: SyntaxError
14 features: [regexp-unicode-property-escapes]
15 ---*/
16
17 $DONOTEVALUATE();
18
19 /\\p{Script=FooBarBazInvalid}/u;