binary-property-with-value-ASCII_-_Yes-negated.js 468 B

123456789101112131415161718
  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. Binary properties with an explicit value must throw in Unicode property
  7. escapes (even if the value is valid).
  8. esid: sec-static-semantics-unicodematchproperty-p
  9. negative:
  10. phase: parse
  11. type: SyntaxError
  12. features: [regexp-unicode-property-escapes]
  13. ---*/
  14. $DONOTEVALUATE();
  15. /\P{ASCII=Yes}/u;