Skip to content

Commit

Permalink
Actually initialize branchID in RegExpValidationState constuctor
Browse files Browse the repository at this point in the history
Issue #1293
  • Loading branch information
marijnh committed Apr 18, 2024
1 parent 33f414f commit 757da7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions acorn/src/regexp.js
Expand Up @@ -50,6 +50,7 @@ export class RegExpValidationState {
this.maxBackReference = 0
this.groupNames = Object.create(null)
this.backReferenceNames = []
this.branchID = null
}

reset(start, pattern, flags) {
Expand Down

0 comments on commit 757da7b

Please sign in to comment.