Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index ccafff1c805d23aedb22d6950fd8bab1a480c4d1..9a0cf6dbfaeb71d3a5cab414b6540bd28cdbc208 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2871,6 +2871,12 @@ void ValueSerializer::TransferArrayBuffer(uint32_t transfer_id, |
Utils::OpenHandle(*array_buffer)); |
} |
+void ValueSerializer::TransferSharedArrayBuffer( |
+ uint32_t transfer_id, Local<SharedArrayBuffer> shared_array_buffer) { |
+ private_->serializer.TransferArrayBuffer( |
+ transfer_id, Utils::OpenHandle(*shared_array_buffer)); |
+} |
+ |
struct ValueDeserializer::PrivateData { |
PrivateData(i::Isolate* i, i::Vector<const uint8_t> data) |
: isolate(i), deserializer(i, data) {} |
@@ -2941,6 +2947,12 @@ void ValueDeserializer::TransferArrayBuffer(uint32_t transfer_id, |
Utils::OpenHandle(*array_buffer)); |
} |
+void ValueDeserializer::TransferSharedArrayBuffer( |
+ uint32_t transfer_id, Local<SharedArrayBuffer> shared_array_buffer) { |
+ private_->deserializer.TransferArrayBuffer( |
+ transfer_id, Utils::OpenHandle(*shared_array_buffer)); |
+} |
+ |
// --- D a t a --- |
bool Value::FullIsUndefined() const { |