Skip to content

Commit 3ba72b5

Browse files
targosryzokuken
authored andcommitted
src: remove use of deprecated IsNeuterable and Neuter APIs
1 parent 90b3de6 commit 3ba72b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_messaging.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)