diff --git a/ext/broadcast_channel/01_broadcast_channel.js b/ext/broadcast_channel/01_broadcast_channel.js index dad94860d5..f3b0917090 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 57287ffbce..bac206ab13 100644 --- a/ext/broadcast_channel/lib.rs +++ b/ext/broadcast_channel/lib.rs @@ -68,7 +68,6 @@ where pub fn op_broadcast_unsubscribe( state: &mut OpState, rid: ResourceId, - _buf: (), ) -> Result<(), AnyError> where BC: BroadcastChannel + 'static, @@ -81,7 +80,8 @@ where #[op] pub async fn op_broadcast_send( state: Rc>, - (rid, name): (ResourceId, String), + rid: ResourceId, + name: String, buf: ZeroCopyBuf, ) -> Result<(), AnyError> where