Merge pull request #20548 from calixteman/jbig2wasm_failure

Fix wasm url issue for the jbig2 decoder
This commit is contained in:
Tim van der Meij 2026-01-04 19:14:37 +01:00 committed by GitHub
commit 54d84799c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class JBig2WasmImage {
return successCallback(results.instance);
} catch (reason) {
warn(`JBig2Image#instantiateWasm: ${reason}`);
return null;
return fallbackCallback(null);
} finally {
this.#handler = null;
}

View File

@ -13139,5 +13139,14 @@
"rounds": 1,
"link": true,
"type": "eq"
},
{
"id": "JBIG2Globals_nowasm",
"file": "pdfs/JBIG2Globals.pdf",
"md5": "78ee015a604678a4efbdcd993e0d77aa",
"rounds": 1,
"link": true,
"type": "eq",
"useWasm": false
}
]