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 {
50
50
this . maxBackReference = 0
51
51
this . groupNames = Object . create ( null )
52
52
this . backReferenceNames = [ ]
53
- this . alternative = null
54
53
}
55
54
56
55
reset ( start , pattern , flags ) {
@@ -228,7 +227,7 @@ pp.regexp_pattern = function(state) {
228
227
// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction
229
228
pp . regexp_disjunction = function ( state ) {
230
229
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 )
232
231
this . regexp_alternative ( state )
233
232
while ( state . eat ( 0x7C /* | */ ) ) {
234
233
if ( trackDisjunction ) state . branchID = state . branchID . sibling ( )
You can’t perform that action at this time.
0 commit comments