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

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

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.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.h b/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.h
index f668b6bf7568e552f625ba3ef4ff3e7be5368e33..753f60d81c671c55587d0613c0d9c20048c096a1 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.h
@@ -53,9 +53,12 @@ public:
int match(const String&, int startFrom = 0, int* matchLength = 0) const;
bool isValid() const { return !m_regex.isEmpty(); }
+ // exceptionMessage is available only if !isValid().
+ String exceptionMessage() const { return m_exceptionMessage; }
private:
ScopedPersistent<v8::RegExp> m_regex;
+ String m_exceptionMessage;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698