Index: src/builtins/builtins-regexp.cc |
diff --git a/src/builtins/builtins-regexp.cc b/src/builtins/builtins-regexp.cc |
index d993e82f2eae7ee0a2545f712ae43f22b0810db6..894943043c341215ea65d4e4cc221fbc018ebd42 100644 |
--- a/src/builtins/builtins-regexp.cc |
+++ b/src/builtins/builtins-regexp.cc |
@@ -39,10 +39,10 @@ Handle<String> PatternFlags(Isolate* isolate, Handle<JSRegExp> regexp) { |
// ES#sec-regexpinitialize |
// Runtime Semantics: RegExpInitialize ( obj, pattern, flags ) |
-MaybeHandle<JSRegExp> RegExpInitialize(Isolate* isolate, |
- Handle<JSRegExp> regexp, |
- Handle<Object> pattern, |
- Handle<Object> flags) { |
+MUST_USE_RESULT MaybeHandle<JSRegExp> RegExpInitialize(Isolate* isolate, |
+ Handle<JSRegExp> regexp, |
+ Handle<Object> pattern, |
+ Handle<Object> flags) { |
Handle<String> pattern_string; |
if (pattern->IsUndefined(isolate)) { |
pattern_string = isolate->factory()->empty_string(); |
@@ -1341,9 +1341,9 @@ MaybeHandle<JSArray> RegExpSplit(Isolate* isolate, Handle<JSRegExp> regexp, |
// ES##sec-speciesconstructor |
// SpeciesConstructor ( O, defaultConstructor ) |
-MaybeHandle<Object> SpeciesConstructor(Isolate* isolate, |
- Handle<JSReceiver> recv, |
- Handle<JSFunction> default_ctor) { |
+MUST_USE_RESULT MaybeHandle<Object> SpeciesConstructor( |
+ Isolate* isolate, Handle<JSReceiver> recv, |
+ Handle<JSFunction> default_ctor) { |
Handle<Object> ctor_obj; |
ASSIGN_RETURN_ON_EXCEPTION( |
isolate, ctor_obj, |