character-class-range-end.js (571B)
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 NonemptyClassRanges :: ClassAtom - ClassAtom ClassRanges 9 10 It is a Syntax Error if IsCharacterClass of the first ClassAtom is 11 true or IsCharacterClass of the second ClassAtom is true. 12 esid: sec-patterns-static-semantics-early-errors 13 negative: 14 phase: parse 15 type: SyntaxError 16 features: [regexp-unicode-property-escapes] 17 ---*/ 18 19 $DONOTEVALUATE(); 20 21 /[--\p{Hex}]/u;