blob: d5ff6a8548d2de9d1a2beaa7618ce653c9c5316e (
plain)
1
2
3
4
5
6
|
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);
|