Index: src/runtime/runtime-typedarray.cc |
diff --git a/src/runtime/runtime-typedarray.cc b/src/runtime/runtime-typedarray.cc |
index 7c2e277b3f270a74456a9c397aec81d6232e17d5..8a3fce0a923d6f1ddd17650f17d4d6e7b6799209 100644 |
--- a/src/runtime/runtime-typedarray.cc |
+++ b/src/runtime/runtime-typedarray.cc |
@@ -92,9 +92,8 @@ RUNTIME_FUNCTION(Runtime_ArrayBufferNeuter) { |
void* backing_store = array_buffer->backing_store(); |
size_t byte_length = NumberToSize(isolate, array_buffer->byte_length()); |
array_buffer->set_is_external(true); |
+ isolate->heap()->UnregisterArrayBuffer(*array_buffer); |
array_buffer->Neuter(); |
- isolate->heap()->UnregisterArrayBuffer( |
- isolate->heap()->InNewSpace(*array_buffer), backing_store); |
isolate->array_buffer_allocator()->Free(backing_store, byte_length); |
return isolate->heap()->undefined_value(); |
} |