grammar-extension-In-prefix-Script-implicit-negated.js (538B)
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 This tests violations of the grammar starting here: 9 10 CharacterClassEscape[U]:: 11 [+U] p{ UnicodePropertyValueExpression } 12 [+U] P{ UnicodePropertyValueExpression } 13 esid: prod-CharacterClassEscape 14 negative: 15 phase: parse 16 type: SyntaxError 17 features: [regexp-unicode-property-escapes] 18 ---*/ 19 20 $DONOTEVALUATE(); 21 22 /\P{InAdlam}/u;