1import '../common/index.mjs';
2import assert from 'assert';
3import { Worker } from 'worker_threads';
4
5const re = /The property 'options\.eval' must be false when 'filename' is not a string\./;
6assert.throws(() => new Worker(new URL(import.meta.url), { eval: true }), re);
7