"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const node_worker_threads_1 = require("node:worker_threads");
const messageChannels = [];
afterEach(() => {
    let mc;
    while ((mc = messageChannels.pop())) {
        mc.port1.close();
        mc.port2.close();
    }
});
//@ts-ignore
globalThis.MessageChannel = function MessageChannel() {
    const mc = new node_worker_threads_1.MessageChannel();
    messageChannels.push(mc);
    return mc;
};
//# sourceMappingURL=messageChannelPolyfill.cjs.map
