tor-browser

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

invalid-dangling-groupname-4.js (636B)


      1 // |reftest| error:SyntaxError
      2 // Copyright 2017 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 description: Group reference must have corresponding group.
      7 info: |
      8  It is a Syntax Error if the enclosing Pattern does not contain a
      9  GroupSpecifier with an enclosed RegExpIdentifierName whose StringValue
     10  equals the StringValue of the RegExpIdentifierName of this production's
     11  GroupName.
     12 esid: sec-patterns-static-semantics-early-errors
     13 negative:
     14  phase: parse
     15  type: SyntaxError
     16 features: [regexp-named-groups]
     17 ---*/
     18 
     19 $DONOTEVALUATE();
     20 
     21 /\k<a>(?<ab>a)/;