diff options
Diffstat (limited to 'js/src/regexp/regexp.h')
-rw-r--r-- | js/src/regexp/regexp.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/src/regexp/regexp.h b/js/src/regexp/regexp.h index cce58da38..a36662b78 100644 --- a/js/src/regexp/regexp.h +++ b/js/src/regexp/regexp.h @@ -5,6 +5,7 @@ #ifndef V8_REGEXP_REGEXP_H_ #define V8_REGEXP_REGEXP_H_ +#include "regexp/regexp-error.h" #include "regexp/regexp-shim.h" namespace v8 { @@ -42,7 +43,11 @@ struct RegExpCompileData { // The error message. Only used if an error occurred during parsing or // compilation. - Handle<String> error; + RegExpError error = RegExpError::kNone; + + // The position at which the error was detected. Only used if an + // error occurred. + int error_pos = 0; // The number of capture groups, without the global capture \0. int capture_count = 0; |