Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 312faebdc716ff9d243ac663ee5770c1037edfa1..514ff08183a0a4464afd6a37974c2476da1cc44a 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2865,6 +2865,12 @@ std::vector<uint8_t> ValueSerializer::ReleaseBuffer() { |
return private_->serializer.ReleaseBuffer(); |
} |
+void ValueSerializer::TransferArrayBuffer(uint32_t transfer_id, |
+ Local<ArrayBuffer> array_buffer) { |
+ private_->serializer.TransferArrayBuffer(transfer_id, |
+ Utils::OpenHandle(*array_buffer)); |
+} |
+ |
struct ValueDeserializer::PrivateData { |
PrivateData(i::Isolate* i, i::Vector<const uint8_t> data) |
: isolate(i), deserializer(i, data) {} |
@@ -2929,6 +2935,12 @@ MaybeLocal<Value> ValueDeserializer::ReadValue(Local<Context> context) { |
RETURN_ESCAPED(value); |
} |
+void ValueDeserializer::TransferArrayBuffer(uint32_t transfer_id, |
+ Local<ArrayBuffer> array_buffer) { |
+ private_->deserializer.TransferArrayBuffer(transfer_id, |
+ Utils::OpenHandle(*array_buffer)); |
+} |
+ |
// --- D a t a --- |
bool Value::FullIsUndefined() const { |