mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-24 16:07:22 +02: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);
|
return successCallback(results.instance);
|
||||||
} catch (reason) {
|
} catch (reason) {
|
||||||
warn(`JBig2Image#instantiateWasm: ${reason}`);
|
warn(`JBig2Image#instantiateWasm: ${reason}`);
|
||||||
return null;
|
return fallbackCallback(null);
|
||||||
} finally {
|
} finally {
|
||||||
this.#handler = null;
|
this.#handler = null;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13139,5 +13139,14 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"link": true,
|
"link": true,
|
||||||
"type": "eq"
|
"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