tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

non-binary-property-without-value-Script-negated.js (462B)


      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  Non-binary properties without a value must throw in Unicode property escapes.
      9 esid: sec-static-semantics-unicodematchproperty-p
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 features: [regexp-unicode-property-escapes]
     14 ---*/
     15 
     16 $DONOTEVALUATE();
     17 
     18 /\P{Script}/u;