summaryrefslogtreecommitdiff
path: root/src/node_messaging.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_messaging.h')
-rw-r--r--src/node_messaging.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_messaging.h b/src/node_messaging.h
index e4674885d2..3c79e24f24 100644
--- a/src/node_messaging.h
+++ b/src/node_messaging.h
@@ -47,6 +47,9 @@ class Message : public MemoryRetainer {
// Internal method of Message that is called once serialization finishes
// and that transfers ownership of `data` to this message.
void AddMessagePort(std::unique_ptr<MessagePortData>&& data);
+ // Internal method of Message that is called when a new WebAssembly.Module
+ // object is encountered in the incoming value's structure.
+ uint32_t AddWASMModule(v8::WasmCompiledModule::TransferrableModule&& mod);
// The MessagePorts that will be transferred, as recorded by Serialize().
// Used for warning user about posting the target MessagePort to itself,
@@ -65,6 +68,7 @@ class Message : public MemoryRetainer {
std::vector<MallocedBuffer<char>> array_buffer_contents_;
std::vector<SharedArrayBufferMetadataReference> shared_array_buffers_;
std::vector<std::unique_ptr<MessagePortData>> message_ports_;
+ std::vector<v8::WasmCompiledModule::TransferrableModule> wasm_modules_;
friend class MessagePort;
};