Fix wasm url issue for the jbig2 decoder

and add a test for jbig2 decoding with the js decoder.
This commit is contained in:
calixteman 2026-01-04 00:08:53 +01:00
parent cb36cbdc13
commit eab33828a9
No known key found for this signature in database
GPG Key ID: 0C5442631EE0691F
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
}
]