Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index e5e674ac0e444c99ca45ed283076a5f499f4a58f..4a4a7fb8e535deee5ab74506241adcc1ea5f8ff0 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6954,15 +6954,7 @@ String::Value::~Value() { |
{ \ |
i::HandleScope scope(isolate); \ |
i::Handle<i::String> message = Utils::OpenHandle(*raw_message); \ |
- i::Handle<i::Object> result; \ |
- EXCEPTION_PREAMBLE(isolate); \ |
- i::MaybeHandle<i::Object> maybe_result = \ |
- isolate->factory()->New##NAME(message); \ |
- has_pending_exception = !maybe_result.ToHandle(&result); \ |
- /* TODO(yangguo): crbug/403509. Return empty handle instead. */ \ |
- EXCEPTION_BAILOUT_CHECK( \ |
- isolate, v8::Undefined(reinterpret_cast<v8::Isolate*>(isolate))); \ |
- error = *result; \ |
+ error = *isolate->factory()->New##NAME(message); \ |
} \ |
i::Handle<i::Object> result(error, isolate); \ |
return Utils::ToLocal(result); \ |