MessageChannel();

        channel2.port2.onmessage = (event) => {
            port3Logs.push("Port3: " + JSON.stringify(event.data));
            channel.port2.postMessage("DONE");
        }

        channel.port2.postMessage("Hello");
        channel.port2.postMessage({ foo: channel2.port1 }, { transfer: [channel2.port1] });
    });
</script>
