Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index a5d0dbf4398fe0b53b5fa14c12f18522d96bf5da..5be4ca82012beaeb714a91304d7b79c3bb1f3328 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5531,7 +5531,7 @@ static void FreezeDictionary(Dictionary* dictionary) { |
} |
-Handle<Object> JSObject::Freeze(Handle<JSObject> object) { |
+MaybeHandle<Object> JSObject::Freeze(Handle<JSObject> object) { |
// Freezing sloppy arguments should be handled elsewhere. |
ASSERT(!object->HasSloppyArgumentsElements()); |
ASSERT(!object->map()->is_observed()); |
@@ -5544,7 +5544,7 @@ Handle<Object> JSObject::Freeze(Handle<JSObject> object) { |
isolate->factory()->undefined_value(), |
v8::ACCESS_KEYS)) { |
isolate->ReportFailedAccessCheckWrapper(object, v8::ACCESS_KEYS); |
- RETURN_HANDLE_IF_SCHEDULED_EXCEPTION(isolate, Object); |
+ RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate, Object); |
return isolate->factory()->false_value(); |
} |
@@ -5562,8 +5562,7 @@ Handle<Object> JSObject::Freeze(Handle<JSObject> object) { |
isolate->factory()->NewTypeError( |
"cant_prevent_ext_external_array_elements", |
HandleVector(&object, 1)); |
- isolate->Throw(*error); |
- return Handle<Object>(); |
+ return isolate->Throw<Object>(error); |
} |
Handle<SeededNumberDictionary> new_element_dictionary; |