Skip to main content

message_port_post_message

Function message_port_post_message 

Source
pub(crate) fn message_port_post_message(
    it: &mut Interp,
    this: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

port.postMessage(data)structuredClone と同じアルゴリズムでデータを 複製してから相手側ポートへ同期配送する(close() 済みのポートからは 送信しても無視する)。