tor-browser

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

invalid-braced-quantifier-exact.js (770B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-patterns
      6 es6id: 21.2.1
      7 description: Braced quantifier in an Atom position (exact count)
      8 info: |
      9    SyntaxCharacter :: one of
     10        ^$\.*+?()[]{}|
     11 
     12    PatternCharacter ::
     13        SourceCharacter but not SyntaxCharacter
     14 
     15    Although Annex B extends the definition of Term to include
     16    ExtendedPatternCharacter, it also introduces the InvalidBracedQuantifier
     17    pattern with a higher precedence. This makes the SyntaxError for such
     18    patterns consistent between Annex-B and non-Annex-B environments.
     19 negative:
     20  phase: parse
     21  type: SyntaxError
     22 ---*/
     23 
     24 $DONOTEVALUATE();
     25 
     26 /{2}/;