Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 7c9e4366ed7847641fbb3b6042cff7f2d5e31783..d7b74f81408b37e1b22fadfb77c74ff12304f5c6 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1320,10 +1320,12 @@ void Genesis::InitializeExperimentalGlobal() { |
if (FLAG_harmony_array_buffer) { |
// -- A r r a y B u f f e r |
Handle<JSFunction> array_buffer_fun = |
- InstallFunction(global, "ArrayBuffer", JS_ARRAY_BUFFER_TYPE, |
- JSArrayBuffer::kSize, |
- isolate()->initial_object_prototype(), |
- Builtins::kIllegal, true, true); |
+ InstallFunction( |
+ global, "ArrayBuffer", JS_ARRAY_BUFFER_TYPE, |
+ JSArrayBuffer::kSize + |
+ v8::ArrayBuffer::kInternalFieldCount * kPointerSize, |
+ isolate()->initial_object_prototype(), |
+ Builtins::kIllegal, true, true); |
native_context()->set_array_buffer_fun(*array_buffer_fun); |
} |