mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
Fix wasm url issue for the jbig2 decoder
and add a test for jbig2 decoding with the js decoder.
This commit is contained in:
parent
cb36cbdc13
commit
eab33828a9
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user