Index: src/execution.cc |
diff --git a/src/execution.cc b/src/execution.cc |
index 90b90cd57dac8ed9c0d0e11f88d9285da64586cd..d4efb7653d8e0171a8e8f04f160caf691e925769 100644 |
--- a/src/execution.cc |
+++ b/src/execution.cc |
@@ -421,13 +421,15 @@ void StackGuard::InitThread(const ExecutionAccess& lock) { |
// --- C a l l s t o n a t i v e s --- |
-MaybeHandle<Object> Execution::ToObject(Isolate* isolate, Handle<Object> obj) { |
+MaybeHandle<JSReceiver> Execution::ToObject(Isolate* isolate, |
+ Handle<Object> obj) { |
Handle<JSReceiver> receiver; |
if (JSReceiver::ToObject(isolate, obj).ToHandle(&receiver)) { |
return receiver; |
} |
- THROW_NEW_ERROR( |
- isolate, NewTypeError(MessageTemplate::kUndefinedOrNullToObject), Object); |
+ THROW_NEW_ERROR(isolate, |
+ NewTypeError(MessageTemplate::kUndefinedOrNullToObject), |
+ JSReceiver); |
} |