character-class.js (506B)
1 // Copyright 2018 Mathias Bynens. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 author: Mathias Bynens 6 description: > 7 Unicode property escapes must be supported in character classes. 8 esid: sec-static-semantics-unicodematchproperty-p 9 features: [regexp-unicode-property-escapes] 10 ---*/ 11 12 /[\p{Hex}]/u; 13 14 assert( 15 /[\p{Hex}\P{Hex}]/u.test('\u{1D306}'), 16 'multiple property escapes in a single character class should be supported' 17 ); 18 19 reportCompare(0, 0);