Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 512abe3dff497ec54e60ffa6f2a44ae2afde5599..28c4a7829c3c586b48d65084b35ae21587903f8b 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1166,9 +1166,7 @@ MUST_USE_RESULT static Object* HandleApiCallHelper( |
if (shared->strict_mode() == SLOPPY && !shared->native()) { |
Object* recv = args[0]; |
ASSERT(!recv->IsNull()); |
- if (recv->IsUndefined()) { |
- args[0] = function->context()->global_object()->global_receiver(); |
- } |
+ if (recv->IsUndefined()) args[0] = function->global_proxy(); |
} |
Object* raw_holder = TypeCheck(heap, args.length(), &args[0], *fun_data); |