diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2012-01-03 11:46:53 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2012-01-03 11:46:53 -0800 |
commit | 557fc396b4f5c165de90fbf9eaecb4370b46c057 (patch) | |
tree | effdb5494f7e290a80de2f9ca45b5e4be264494d /deps/v8/src/bootstrapper.cc | |
parent | c123ac05dc37311d3dfb37ed6f22baef58280379 (diff) | |
download | node-557fc396b4f5c165de90fbf9eaecb4370b46c057.tar.gz |
Upgrade V8 to 3.8.4
Diffstat (limited to 'deps/v8/src/bootstrapper.cc')
-rw-r--r-- | deps/v8/src/bootstrapper.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/deps/v8/src/bootstrapper.cc b/deps/v8/src/bootstrapper.cc index 6d388a568..d1bf975fb 100644 --- a/deps/v8/src/bootstrapper.cc +++ b/deps/v8/src/bootstrapper.cc @@ -1613,16 +1613,13 @@ bool Genesis::InstallNatives() { // doesn't inherit from Object.prototype. // To be used only for internal work by builtins. Instances // must not be leaked to user code. - // Only works correctly when called as a constructor. The normal - // Array code uses Array.prototype as prototype when called as - // a function. Handle<JSFunction> array_function = InstallFunction(builtins, "InternalArray", JS_ARRAY_TYPE, JSArray::kSize, isolate()->initial_object_prototype(), - Builtins::kArrayCode, + Builtins::kInternalArrayCode, true); Handle<JSObject> prototype = factory()->NewJSObject(isolate()->object_function(), TENURED); @@ -1654,6 +1651,8 @@ bool Genesis::InstallNatives() { array_function->initial_map()->set_instance_descriptors( *array_descriptors); + + global_context()->set_internal_array_function(*array_function); } if (FLAG_disable_native_files) { |