Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index bdc8ab31acd66b4f72b4f48606760ab3426adf6a..3ebdcc5cf4608e1b7cdc1be4ae30d4cf579f8136 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3380,7 +3380,7 @@ MaybeObject* Heap::AllocateArgumentsObject(Object* callee, int length) { |
JSObject* boilerplate; |
int arguments_object_size; |
bool strict_mode_callee = callee->IsJSFunction() && |
- JSFunction::cast(callee)->shared()->strict_mode(); |
+ !JSFunction::cast(callee)->shared()->is_classic_mode(); |
if (strict_mode_callee) { |
boilerplate = |
isolate()->context()->global_context()-> |