Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index c73c9676e6398f18aceba570ea28da40ceb4251a..19939659649330ede03c94a3210c667a45e839bd 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1843,8 +1843,8 @@ Handle<JSTypedArray> Factory::NewJSTypedArray(ElementsKind elements_kind, |
obj->set_length(*length_object); |
Handle<JSArrayBuffer> buffer = isolate()->factory()->NewJSArrayBuffer(); |
- Runtime::SetupArrayBuffer(isolate(), buffer, true, NULL, byte_length, |
- SharedFlag::kNotShared); |
+ JSArrayBuffer::Setup(buffer, isolate(), true, NULL, byte_length, |
+ SharedFlag::kNotShared); |
obj->set_buffer(*buffer); |
Handle<FixedTypedArrayBase> elements = |
isolate()->factory()->NewFixedTypedArray( |