Index: src/jsregexp.h |
diff --git a/src/jsregexp.h b/src/jsregexp.h |
index 444c66f812f954bbac0f54218102209158048181..364cb9117a60ca83ec0f637a6bd40c7c2ec82b2f 100644 |
--- a/src/jsregexp.h |
+++ b/src/jsregexp.h |
@@ -76,10 +76,11 @@ class RegExpImpl { |
// See ECMA-262 section 15.10.6.2. |
// This function calls the garbage collector if necessary. |
- static Handle<Object> Exec(Handle<JSRegExp> regexp, |
- Handle<String> subject, |
- int index, |
- Handle<JSArray> lastMatchInfo); |
+ MUST_USE_RESULT static MaybeHandle<Object> Exec( |
+ Handle<JSRegExp> regexp, |
+ Handle<String> subject, |
+ int index, |
+ Handle<JSArray> lastMatchInfo); |
// Prepares a JSRegExp object with Irregexp-specific data. |
static void IrregexpInitialize(Handle<JSRegExp> re, |
@@ -134,10 +135,11 @@ class RegExpImpl { |
// On a successful match, the result is a JSArray containing |
// captured positions. On a failure, the result is the null value. |
// Returns an empty handle in case of an exception. |
- static Handle<Object> IrregexpExec(Handle<JSRegExp> regexp, |
- Handle<String> subject, |
- int index, |
- Handle<JSArray> lastMatchInfo); |
+ MUST_USE_RESULT static MaybeHandle<Object> IrregexpExec( |
+ Handle<JSRegExp> regexp, |
+ Handle<String> subject, |
+ int index, |
+ Handle<JSArray> lastMatchInfo); |
// Set last match info. If match is NULL, then setting captures is omitted. |
static Handle<JSArray> SetLastMatchInfo(Handle<JSArray> last_match_info, |