| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index 3868011e4fa6692bf4f48ba2321f7b4b424ddc8b..b3e0b25b75c3229b6f46266d39c5abf4ee027f3b 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -362,8 +362,10 @@ RUNTIME_FUNCTION(Runtime_SetPrototype) {
|
| Handle<Object> new_value =
|
| Object::GetPrototypeSkipHiddenPrototypes(isolate, obj);
|
| if (!new_value->SameValue(*old_value)) {
|
| - JSObject::EnqueueChangeRecord(
|
| - obj, "setPrototype", isolate->factory()->proto_string(), old_value);
|
| + RETURN_FAILURE_ON_EXCEPTION(
|
| + isolate, JSObject::EnqueueChangeRecord(
|
| + obj, "setPrototype", isolate->factory()->proto_string(),
|
| + old_value));
|
| }
|
| return *result;
|
| }
|
|
|