1import { strictEqual } from "node:assert"; 2import { isMainThread, workerData, parentPort } from "node:worker_threads"; 3 4strictEqual(isMainThread, false); 5 6// We want to make sure that internals are not leaked on the public module: 7strictEqual(workerData, null); 8strictEqual(parentPort, null); 9 10// We don't want `import.meta.resolve` being available from loaders 11// as the sync implementation is not compatible with calling async 12// functions on the same thread. 13strictEqual(typeof import.meta.resolve, 'undefined'); 14