Files
Kmake/test/parallel/test-worker-dispose.mjs

9 lines
253 B
JavaScript
Raw Permalink Normal View History

2026-05-26 23:36:42 -07:00
import * as common from '../common/index.mjs';
import { Worker } from 'node:worker_threads';
{
// Verifies that the worker is async disposable
await using worker = new Worker('for(;;) {}', { eval: true });
worker.on('exit', common.mustCall());
}