| Index: third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp
|
| index 1829645fa5cf1b91dd524c99ed11e8696c8cc749..be7bef642cc143bb8456109f3d8ce856d9e5d12a 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8Regex.cpp
|
| @@ -29,6 +29,10 @@ V8Regex::V8Regex(V8DebuggerImpl* debugger, const String16& pattern, bool caseSen
|
| v8::Local<v8::RegExp> regex;
|
| if (v8::RegExp::New(context, toV8String(isolate, pattern), static_cast<v8::RegExp::Flags>(flags)).ToLocal(®ex))
|
| m_regex.Reset(isolate, regex);
|
| + else if (tryCatch.HasCaught())
|
| + m_errorMessage = toProtocolString(tryCatch.Message()->Get());
|
| + else
|
| + m_errorMessage = "Internal error";
|
| }
|
|
|
| int V8Regex::match(const String16& string, int startFrom, int* matchLength) const
|
|
|