Files
Kmake/test/parallel/test-worker-unsupported-eval-on-url.mjs

7 lines
271 B
JavaScript
Raw Permalink Normal View History

2026-05-26 23:36:42 -07:00
import '../common/index.mjs';
import assert from 'assert';
import { Worker } from 'worker_threads';
const re = /The property 'options\.eval' must be false when 'filename' is not a string\./;
assert.throws(() => new Worker(new URL(import.meta.url), { eval: true }), re);