From 757da7b9324eaa8200e8ab9959226a337651fb45 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 18 Apr 2024 08:53:54 +0200 Subject: [PATCH] Actually initialize branchID in RegExpValidationState constuctor Issue https://github.com/acornjs/acorn/pull/1293 --- acorn/src/regexp.js | 1 + 1 file changed, 1 insertion(+) diff --git a/acorn/src/regexp.js b/acorn/src/regexp.js index eaebceb14..65e5dc019 100644 --- a/acorn/src/regexp.js +++ b/acorn/src/regexp.js @@ -50,6 +50,7 @@ export class RegExpValidationState { this.maxBackReference = 0 this.groupNames = Object.create(null) this.backReferenceNames = [] + this.branchID = null } reset(start, pattern, flags) {