character-class-range-no-dash-end.js 542 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. NonemptyClassRangesNoDash :: ClassAtomNoDash - ClassAtom ClassRanges
  7. It is a Syntax Error if IsCharacterClass of ClassAtomNoDash is true or
  8. IsCharacterClass of 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. /[\uFFFF-\p{Hex}]/u;