Index: src/runtime/runtime-array.cc |
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
index 0e414384f5e22f6a747d7aa4a5efa628b5a04518..8b087e6783b4f99df886acbe225961bcea4abd8a 100644 |
--- a/src/runtime/runtime-array.cc |
+++ b/src/runtime/runtime-array.cc |
@@ -320,8 +320,9 @@ static Object* ArrayConstructorCommon(Isolate* isolate, |
if (original_constructor->has_instance_prototype()) { |
Handle<Object> prototype = |
handle(original_constructor->instance_prototype(), isolate); |
- RETURN_FAILURE_ON_EXCEPTION( |
- isolate, JSObject::SetPrototype(array, prototype, false)); |
+ MAYBE_RETURN( |
+ JSObject::SetPrototype(array, prototype, false, THROW_ON_ERROR), |
+ isolate->heap()->exception()); |
} |
} |