Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index b3779f291af96bf7cefd769c838fc1534aa9a665..1845ac23bf557e8fe33c347021deccfc304463b2 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -2219,7 +2219,8 @@ Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) { |
Handle<JSObject> Factory::NewArgumentsObject(Handle<JSFunction> callee, |
int length) { |
- bool strict_mode_callee = is_strict(callee->shared()->language_mode()); |
+ bool strict_mode_callee = is_strict(callee->shared()->language_mode()) || |
+ !callee->is_simple_parameter_list(); |
Handle<Map> map = strict_mode_callee ? isolate()->strict_arguments_map() |
: isolate()->sloppy_arguments_map(); |