2
0

character-class-range-end.js 540 B

1234567891011121314151617181920
  1. // Copyright 2018 Mathias Bynens. All rights reserved.
  2. // This code is governed by the BSD license found in the LICENSE file.
  3. /*---
  4. author: Mathias Bynens
  5. description: >
  6. NonemptyClassRanges :: ClassAtom - ClassAtom ClassRanges
  7. It is a Syntax Error if IsCharacterClass of the first ClassAtom is
  8. true or IsCharacterClass of the second ClassAtom is true.
  9. esid: sec-patterns-static-semantics-early-errors
  10. negative:
  11. phase: parse
  12. type: SyntaxError
  13. features: [regexp-unicode-property-escapes]
  14. ---*/
  15. $DONOTEVALUATE();
  16. /[--\p{Hex}]/u;