| Index: third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp
|
| index 8fc90321d7ff4680422a97f63e808abbb618f94f..c4d1b4e402a5d38cd17731da4bdea6bc06dacfaf 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp
|
| @@ -54,6 +54,8 @@ ScriptRegexp::ScriptRegexp(const String& pattern, TextCaseSensitivity caseSensit
|
| v8::Local<v8::RegExp> regex;
|
| if (v8::RegExp::New(context, v8String(isolate, pattern), static_cast<v8::RegExp::Flags>(flags)).ToLocal(®ex))
|
| m_regex.set(isolate, regex);
|
| + if (tryCatch.HasCaught() && !tryCatch.Message().IsEmpty())
|
| + m_exceptionMessage = toCoreStringWithUndefinedOrNullCheck(tryCatch.Message()->Get());
|
| }
|
|
|
| int ScriptRegexp::match(const String& string, int startFrom, int* matchLength) const
|
|
|