mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
Silence non-actionable worker_threads.Worker option warnings (#23941)
### What does this PR do? ### How did you verify your code works?
This commit is contained in:
@@ -223,8 +223,6 @@ function moveMessagePortToContext() {
|
||||
throwNotImplemented("worker_threads.moveMessagePortToContext");
|
||||
}
|
||||
|
||||
const unsupportedOptions = ["stdin", "stdout", "stderr", "trackedUnmanagedFds", "resourceLimits"];
|
||||
|
||||
class Worker extends EventEmitter {
|
||||
#worker: WebWorker;
|
||||
#performance;
|
||||
@@ -236,11 +234,6 @@ class Worker extends EventEmitter {
|
||||
|
||||
constructor(filename: string, options: NodeWorkerOptions = {}) {
|
||||
super();
|
||||
for (const key of unsupportedOptions) {
|
||||
if (key in options && options[key] != null) {
|
||||
warnNotImplementedOnce(`worker_threads.Worker option "${key}"`);
|
||||
}
|
||||
}
|
||||
|
||||
const builtinsGeneratorHatesEval = "ev" + "a" + "l"[0];
|
||||
if (options && builtinsGeneratorHatesEval in options) {
|
||||
|
||||
Reference in New Issue
Block a user