Chromium Code Reviews| Index: src/builtins.cc |
| diff --git a/src/builtins.cc b/src/builtins.cc |
| index e4ceec99be4f17a12d42cb3a6614d0662c2e58ea..56c9641d4193afcb5b17bc05c8e6c9992a62d162 100644 |
| --- a/src/builtins.cc |
| +++ b/src/builtins.cc |
| @@ -1576,8 +1576,10 @@ BUILTIN(ReflectGetPrototypeOf) { |
| isolate->factory()->NewStringFromAsciiChecked( |
| "Reflect.getPrototypeOf"))); |
| } |
| - |
| - return *Object::GetPrototype(isolate, target); |
| + Handle<Object> prototype; |
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, prototype, |
| + Object::GetPrototype(isolate, target)); |
|
rossberg
2015/11/12 17:04:39
That is not correct, I'm afraid. The proxy handler
Toon Verwaest
2015/11/12 19:39:05
Independent of whether the target is stored as the
|
| + return *prototype; |
| } |