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)); |
+ return *prototype; |
} |