Index: src/jsregexp.cc |
diff --git a/src/jsregexp.cc b/src/jsregexp.cc |
index bb7ad604140cd5a18a0057ea2ad86ae3518aa391..03398cf6939165cf025c46bcfbfdda8d2a922d66 100644 |
--- a/src/jsregexp.cc |
+++ b/src/jsregexp.cc |
@@ -360,10 +360,8 @@ static void CreateRegExpErrorObjectAndThrow(Handle<JSRegExp> re, |
elements->set(0, re->Pattern()); |
elements->set(1, *error_message); |
Handle<JSArray> array = factory->NewJSArrayWithElements(elements); |
- Handle<Object> error; |
- MaybeHandle<Object> maybe_error = |
- factory->NewSyntaxError("malformed_regexp", array); |
- if (maybe_error.ToHandle(&error)) isolate->Throw(*error); |
+ Handle<Object> error = factory->NewSyntaxError("malformed_regexp", array); |
+ isolate->Throw(*error); |
} |