Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index e16e1d751e9781dd24c6260e2f8a91f3f43cbd6e..748cb8d7b2cc62698477d5ebd5af492be7bbd062 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -1698,6 +1698,12 @@ class V8_EXPORT ValueSerializer { |
void TransferArrayBuffer(uint32_t transfer_id, |
Local<ArrayBuffer> array_buffer); |
+ /* |
+ * Similar to TransferArrayBuffer, but for SharedArrayBuffer. |
+ */ |
+ void TransferSharedArrayBuffer(uint32_t transfer_id, |
+ Local<SharedArrayBuffer> shared_array_buffer); |
+ |
private: |
ValueSerializer(const ValueSerializer&) = delete; |
void operator=(const ValueSerializer&) = delete; |
@@ -1738,6 +1744,13 @@ class V8_EXPORT ValueDeserializer { |
Local<ArrayBuffer> array_buffer); |
/* |
+ * Similar to TransferArrayBuffer, but for SharedArrayBuffer. |
+ * transfer_id exists in the same namespace as unshared ArrayBuffer objects. |
+ */ |
+ void TransferSharedArrayBuffer(uint32_t transfer_id, |
+ Local<SharedArrayBuffer> shared_array_buffer); |
+ |
+ /* |
* Must be called before ReadHeader to enable support for reading the legacy |
* wire format (i.e., which predates this being shipped). |
* |