Index: src/bootstrapper.cc |
=================================================================== |
--- src/bootstrapper.cc (revision 2894) |
+++ src/bootstrapper.cc (working copy) |
@@ -654,6 +654,8 @@ |
InstallFunction(global, "Array", JS_ARRAY_TYPE, JSArray::kSize, |
Top::initial_object_prototype(), Builtins::ArrayCode, |
true); |
+ array_function->shared()->set_construct_stub( |
+ Builtins::builtin(Builtins::ArrayConstructCode)); |
array_function->shared()->DontAdaptArguments(); |
// This seems a bit hackish, but we need to make sure Array.length |