nnel.port1.postMessage(event.data);
        };

        channel.port2.onmessage = (event) => {
            port2Logs.push("Port2: " + JSON.stringify(event.data));
            if (event.data === "DONE") {
                for (let log of port1Logs)
                    println(log);
                for (let log of port2Logs)
                    println(log);
                for (let log of port3Logs)
                    println(log);
                done();
            }
        };

        let channel2 = new 