Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index e668e27973c83b859c1e42b80641a1c9f20dd5a7..f36006c1140db9bae82216352f4df5215d35735a 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1046,6 +1046,16 @@ void Factory::EnsureCanContainElements(Handle<JSArray> array, |
} |
+Handle<JSArrayBuffer> Factory::NewJSArrayBuffer() { |
+ JSFunction* array_buffer_fun = |
+ isolate()->context()->native_context()->array_buffer_fun(); |
+ CALL_HEAP_FUNCTION( |
+ isolate(), |
+ isolate()->heap()->AllocateJSObject(array_buffer_fun), |
+ JSArrayBuffer); |
+} |
+ |
+ |
Handle<JSProxy> Factory::NewJSProxy(Handle<Object> handler, |
Handle<Object> prototype) { |
CALL_HEAP_FUNCTION( |