| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index 5db4eeea2ea846a6d5fd7fdad000e441cbb28b53..0d225ff5ca181b39b1b0e9638160f0034a464ab8 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -158,7 +158,10 @@ RUNTIME_FUNCTION(Runtime_GetPrototype) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 1);
|
| CONVERT_ARG_HANDLE_CHECKED(Object, obj, 0);
|
| - return *Object::GetPrototype(isolate, obj);
|
| + Handle<Object> prototype;
|
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, prototype,
|
| + Object::GetPrototype(isolate, obj));
|
| + return *prototype;
|
| }
|
|
|
|
|
|
|