| 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
|
|
|