File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ export class RegExpValidationState {
5050 this . maxBackReference = 0
5151 this . groupNames = Object . create ( null )
5252 this . backReferenceNames = [ ]
53- this . alternative = null
5453 }
5554
5655 reset ( start , pattern , flags ) {
@@ -228,7 +227,7 @@ pp.regexp_pattern = function(state) {
228227// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction
229228pp . regexp_disjunction = function ( state ) {
230229 let trackDisjunction = this . options . ecmaVersion >= 16
231- if ( trackDisjunction ) state . branchID = new BranchID ( state . branchID , null , 0 )
230+ if ( trackDisjunction ) state . branchID = new BranchID ( state . branchID , null )
232231 this . regexp_alternative ( state )
233232 while ( state . eat ( 0x7C /* | */ ) ) {
234233 if ( trackDisjunction ) state . branchID = state . branchID . sibling ( )
You can’t perform that action at this time.
0 commit comments