Skip to content

[v4.0.0-next.3] Incorrect implementation of loadWasmFactory #1532

@fs-eire

Description

@fs-eire

The string replacement in function loadWasmFactory is incorrect implemented.

original code: https://cdn.jsdelivr.net/npm/onnxruntime-web@1.25.0-dev.20260212-1a71a5f46e/dist/ort-wasm-simd-threaded.asyncify.mjs

var a=new Worker(new URL(import.meta.url),{type:"module",workerData:"em-pthread",name:"em-pthread"});

The actual code being executed in the browser:

var a = new Worker(new URL("https://cdn.jsdelivr.net/npm/onnxruntime-web@1.25.0-dev.20260212-1a71a5f46e/dist"),{
            type: "module",
            workerData: "em-pthread",
            name: "em-pthread"
        });

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions