tor-browser

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

invalid-duplicate-groupspecifier.js (637B)


      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: GroupSpecifiers within one alternative must be unique.
      7 info: |
      8  It is a Syntax Error if |Pattern| contains two distinct |GroupSpecifier|s
      9  _x_ and _y_ for which CapturingGroupName(_x_) is the same as
     10  CapturingGroupName(_y_) and such that CanBothParticipate(_x_, _y_) is *true*.
     11 esid: sec-patterns-static-semantics-early-errors
     12 negative:
     13  phase: parse
     14  type: SyntaxError
     15 features: [regexp-named-groups]
     16 ---*/
     17 
     18 $DONOTEVALUATE();
     19 
     20 /(?<a>a)(?<a>a)/;