From 9264666b631d225781696ad81cf7f2b1f1bc576a Mon Sep 17 00:00:00 2001 From: Toru Nagashima Date: Thu, 15 Feb 2018 07:04:54 +0900 Subject: [PATCH] make recoverable --- src/regexp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regexp.js b/src/regexp.js index 48974e365..96ef9212e 100644 --- a/src/regexp.js +++ b/src/regexp.js @@ -93,7 +93,7 @@ export class RegExpValidationState { } raise(message) { - this.parser.raise(this.start, `Invalid regular expression: /${this.source}/: ${message}`) + this.parser.raiseRecoverable(this.start, `Invalid regular expression: /${this.source}/: ${message}`) } // If u flag is given, this returns the code point at the index (it combines a surrogate pair).