File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/cubing/vendor/apache/comlink-everywhere/outside Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -24,18 +24,12 @@ async function nodeWorker(
2424
2525export 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 } ) ;
You can’t perform that action at this time.
0 commit comments