1 2 3 4 5 6 7
onconnect = (event) => { const port = event.ports[0]; port.onmessage = (event) => { eval(event.data); }; port.postMessage('ready'); };