Index: src/execution.cc |
diff --git a/src/execution.cc b/src/execution.cc |
index d4efb7653d8e0171a8e8f04f160caf691e925769..3e651db26301a17ae7b4a77aed49809f330038fa 100644 |
--- a/src/execution.cc |
+++ b/src/execution.cc |
@@ -144,8 +144,8 @@ MaybeHandle<Object> Execution::Call(Isolate* isolate, Handle<Object> callable, |
if (receiver->IsUndefined() || receiver->IsNull()) { |
receiver = handle(function->global_proxy(), isolate); |
} else { |
- ASSIGN_RETURN_ON_EXCEPTION( |
- isolate, receiver, Execution::ToObject(isolate, receiver), Object); |
+ ASSIGN_RETURN_ON_EXCEPTION(isolate, receiver, |
+ Object::ToObject(isolate, receiver), Object); |
} |
} |
DCHECK(function->context()->global_object()->IsJSGlobalObject()); |
@@ -421,18 +421,6 @@ void StackGuard::InitThread(const ExecutionAccess& lock) { |
// --- C a l l s t o n a t i v e s --- |
-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), |
- JSReceiver); |
-} |
- |
- |
Handle<String> Execution::GetStackTraceLine(Handle<Object> recv, |
Handle<JSFunction> fun, |
Handle<Object> pos, |