11cb0ef41Sopenharmony_ciimport '../common/index.mjs'; 21cb0ef41Sopenharmony_ciimport assert from 'assert'; 31cb0ef41Sopenharmony_ciimport { Worker } from 'worker_threads'; 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciconst re = /The property 'options\.eval' must be false when 'filename' is not a string\./; 61cb0ef41Sopenharmony_ciassert.throws(() => new Worker(new URL(import.meta.url), { eval: true }), re); 7