Skip to content

Commit 9521f7c

Browse files
committed
[comlink-everywhere] Remove eval arg.
1 parent 7944e0b commit 9521f7c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/cubing/vendor/apache/comlink-everywhere/outside/index.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,12 @@ async function nodeWorker(
2424

2525
export async function constructWorker(
2626
source: string | URL,
27-
options?: { eval?: boolean; type?: WorkerType },
27+
options?: { type?: WorkerType },
2828
): Promise<Worker> {
2929
let worker: Worker;
3030
if (useNodeWorkarounds) {
31-
return nodeWorker(source, { eval: options?.eval });
31+
return nodeWorker(source);
3232
} else {
33-
if (options?.eval) {
34-
const blob = new Blob([source as string], {
35-
type: "application/javascript",
36-
});
37-
source = URL.createObjectURL(blob);
38-
}
3933
worker = new globalThis.Worker(source, {
4034
type: options ? options.type : undefined, // TODO: Is it safe to use `options?.type`?
4135
});

0 commit comments

Comments
 (0)