Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/strings/Basic_Emoji-negative-P.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright 2024 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 Negating Unicode property escapes for `Basic_Emoji` (property of strings) with `\P{…}` throws an early error.
9 info: |
10 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
11 Unicode v16.0.0
12 esid: sec-isvalidregularexpressionliteral
13 features: [regexp-unicode-property-escapes, regexp-v-flag]
14 negative:
15 phase: parse
16 type: SyntaxError
17 ---*/
18
19 $DONOTEVALUATE();
20
21 /\P{Basic_Emoji}/v;