RGI_Emoji-negative-CharacterClass.js (615B)
1 // |reftest| error:SyntaxError 2 // Copyright 2025 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 `RGI_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 v17.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{RGI_Emoji}]/v;