File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ Maybe<bool> Message::Serialize(Environment* env,
302302 Local<ArrayBuffer> ab = entry.As <ArrayBuffer>();
303303 // If we cannot render the ArrayBuffer unusable in this Isolate and
304304 // take ownership of its memory, copying the buffer will have to do.
305- if (!ab->IsNeuterable () || ab->IsExternal () ||
305+ if (!ab->IsDetachable () || ab->IsExternal () ||
306306 !env->isolate_data ()->uses_node_allocator ()) {
307307 continue ;
308308 }
@@ -368,7 +368,7 @@ Maybe<bool> Message::Serialize(Environment* env,
368368 // (a.k.a. externalize) the underlying memory region and render
369369 // it inaccessible in this Isolate.
370370 ArrayBuffer::Contents contents = ab->Externalize ();
371- ab->Neuter ();
371+ ab->Detach ();
372372
373373 CHECK (env->isolate_data ()->uses_node_allocator ());
374374 env->isolate_data ()->node_allocator ()->UnregisterPointer (
You can’t perform that action at this time.
0 commit comments