Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 6a44d8cae559236ea780be245a6298803340af59..d403a951cfb1c4ed0795cdb941c03a9c91a9ccda 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1202,10 +1202,10 @@ MUST_USE_RESULT static MaybeObject* HandleApiCallAsFunctionOrConstructor( |
ASSERT(!CalledAsConstructor(isolate)); |
Heap* heap = isolate->heap(); |
- Handle<Object> receiver = args.at<Object>(0); |
+ Handle<Object> receiver = args.receiver(); |
// Get the object called. |
- JSObject* obj = JSObject::cast(*args.receiver()); |
+ JSObject* obj = JSObject::cast(*receiver); |
// Get the invocation callback from the function descriptor that was |
// used to create the called object. |