File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ Maybe<bool> Message::Serialize(Environment* env,
302
302
Local<ArrayBuffer> ab = entry.As <ArrayBuffer>();
303
303
// If we cannot render the ArrayBuffer unusable in this Isolate and
304
304
// take ownership of its memory, copying the buffer will have to do.
305
- if (!ab->IsNeuterable () || ab->IsExternal () ||
305
+ if (!ab->IsDetachable () || ab->IsExternal () ||
306
306
!env->isolate_data ()->uses_node_allocator ()) {
307
307
continue ;
308
308
}
@@ -368,7 +368,7 @@ Maybe<bool> Message::Serialize(Environment* env,
368
368
// (a.k.a. externalize) the underlying memory region and render
369
369
// it inaccessible in this Isolate.
370
370
ArrayBuffer::Contents contents = ab->Externalize ();
371
- ab->Neuter ();
371
+ ab->Detach ();
372
372
373
373
CHECK (env->isolate_data ()->uses_node_allocator ());
374
374
env->isolate_data ()->node_allocator ()->UnregisterPointer (
You can’t perform that action at this time.
0 commit comments