summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-04-04 15:18:29 +0530
committerGitHub <noreply@github.com>2022-04-04 15:18:29 +0530
commit6bb555b549a203ebe921260379f3da70787be655 (patch)
treecad757426805c1fe626719a536a6b25a3c02812c
parent797cf9cdd9fa864494cea4ba02edb7be185fe79a (diff)
chore(ext/broadcast_channel): custom arity (#14199)
-rw-r--r--ext/broadcast_channel/01_broadcast_channel.js2
-rw-r--r--ext/broadcast_channel/lib.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/broadcast_channel/01_broadcast_channel.js b/ext/broadcast_channel/01_broadcast_channel.js
index dad94860d..f3b091709 100644
--- a/ext/broadcast_channel/01_broadcast_channel.js
+++ b/ext/broadcast_channel/01_broadcast_channel.js
@@ -117,7 +117,7 @@
dispatch(this, this[_name], new Uint8Array(data));
// Send to listeners in other VMs.
- defer(() => core.opAsync("op_broadcast_send", [rid, this[_name]], data));
+ defer(() => core.opAsync("op_broadcast_send", rid, this[_name], data));
}
close() {
diff --git a/ext/broadcast_channel/lib.rs b/ext/broadcast_channel/lib.rs
index 57287ffbc..bac206ab1 100644
--- a/ext/broadcast_channel/lib.rs
+++ b/ext/broadcast_channel/lib.rs
@@ -68,7 +68,6 @@ where
pub fn op_broadcast_unsubscribe<BC>(
state: &mut OpState,
rid: ResourceId,
- _buf: (),
) -> Result<(), AnyError>
where
BC: BroadcastChannel + 'static,
@@ -81,7 +80,8 @@ where
#[op]
pub async fn op_broadcast_send<BC>(
state: Rc<RefCell<OpState>>,
- (rid, name): (ResourceId, String),
+ rid: ResourceId,
+ name: String,
buf: ZeroCopyBuf,
) -> Result<(), AnyError>
where