Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index d6985f96a5e392e3aaa3aea6c02dc20a918281e1..c5ad52011d3e788730c6c1e5df050aa65419577f 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -16470,10 +16470,11 @@ Handle<JSArrayBuffer> JSTypedArray::MaterializeArrayBuffer( |
void* backing_store = |
isolate->array_buffer_allocator()->AllocateUninitialized( |
fixed_typed_array->DataSize()); |
- isolate->heap()->RegisterNewArrayBuffer(backing_store, |
- fixed_typed_array->DataSize()); |
buffer->set_backing_store(backing_store); |
buffer->set_is_external(false); |
+ isolate->heap()->RegisterNewArrayBuffer(isolate->heap()->InNewSpace(*buffer), |
+ backing_store, |
+ fixed_typed_array->DataSize()); |
memcpy(buffer->backing_store(), |
fixed_typed_array->DataPtr(), |
fixed_typed_array->DataSize()); |