Skip to content

Commit

Permalink
make recoverable
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Feb 14, 2018
1 parent 4bf6c11 commit 9264666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regexp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 9264666

Please sign in to comment.