summaryrefslogtreecommitdiff
path: root/ext/web/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-03-16 00:59:18 +0000
committerGitHub <noreply@github.com>2024-03-16 01:59:18 +0100
commit92576fdcfd3e32dce63b533ab20d4974136b097d (patch)
tree6f3b61c4d1d10569e4bb54f8ee59fb5f1ff274da /ext/web/lib.rs
parentebbc897b69f906d88a99768a2fff7661e2894670 (diff)
fix(ext/node): support MessagePort in `WorkerOptions.workerData` (#22950)
This commit fixes passing `MessagePort` instances to `WorkerOptions.workerData`. Before they were not serialized and deserialized properly when spawning a worker thread. Closes https://github.com/denoland/deno/issues/22935
Diffstat (limited to 'ext/web/lib.rs')
-rw-r--r--ext/web/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/web/lib.rs b/ext/web/lib.rs
index 60a0cc0d7..74ed78c7e 100644
--- a/ext/web/lib.rs
+++ b/ext/web/lib.rs
@@ -43,12 +43,15 @@ pub use crate::blob::BlobStore;
pub use crate::blob::InMemoryBlobPart;
pub use crate::message_port::create_entangled_message_port;
+pub use crate::message_port::deserialize_js_transferables;
use crate::message_port::op_message_port_create_entangled;
use crate::message_port::op_message_port_post_message;
use crate::message_port::op_message_port_recv_message;
use crate::message_port::op_message_port_recv_message_sync;
+pub use crate::message_port::serialize_transferables;
pub use crate::message_port::JsMessageData;
pub use crate::message_port::MessagePort;
+pub use crate::message_port::Transferable;
use crate::timers::op_defer;
use crate::timers::op_now;