mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
* copy and format * copy * copy * cleanup * some tests * spellcheck * add types * don't lock getting contextId * array buffer test
7 lines
170 B
JavaScript
7 lines
170 B
JavaScript
var channel = new MessageChannel();
|
|
channel.port1.onmessage = e => {
|
|
channel.port1.postMessage("done!");
|
|
};
|
|
|
|
postMessage(channel.port2, { transfer: [channel.port2] });
|