Basic_Emoji-negative-u.js (677B)
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 Unicode property escapes for `Basic_Emoji` (property of strings) with the `u` flag throws an early error. Properties of strings are only supported through the `v` flag. 9 info: | 10 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests 11 Unicode v17.0.0 12 esid: sec-patterns-static-semantics-early-errors 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}/u;