Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp

Issue 2037553002: INPUT pattern attribute: Enable "unicode" flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a comment about |mutable|, remove unnecessary #include Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(&regex))
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
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.h ('k') | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698