diff --git a/src/node_messaging.cc b/src/node_messaging.cc index e8b569be772..7d6c6ad80cd 100644 --- a/src/node_messaging.cc +++ b/src/node_messaging.cc @@ -279,7 +279,8 @@ Maybe Message::Serialize(Environment* env, Local ab = entry.As(); // If we cannot render the ArrayBuffer unusable in this Isolate and // take ownership of its memory, copying the buffer will have to do. - if (!ab->IsNeuterable() || ab->IsExternal()) + if (!ab->IsNeuterable() || ab->IsExternal() || + !env->isolate_data()->uses_node_allocator()) { continue; } // We simply use the array index in the `array_buffers` list as the