Skip to content

Commit 54d8479

Browse files
Merge pull request #20548 from calixteman/jbig2wasm_failure
Fix wasm url issue for the jbig2 decoder
2 parents cb36cbd + eab3382 commit 54d8479

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/core/jbig2_wasm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class JBig2WasmImage {
6363
return successCallback(results.instance);
6464
} catch (reason) {
6565
warn(`JBig2Image#instantiateWasm: ${reason}`);
66-
return null;
66+
return fallbackCallback(null);
6767
} finally {
6868
this.#handler = null;
6969
}

test/test_manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13139,5 +13139,14 @@
1313913139
"rounds": 1,
1314013140
"link": true,
1314113141
"type": "eq"
13142+
},
13143+
{
13144+
"id": "JBIG2Globals_nowasm",
13145+
"file": "pdfs/JBIG2Globals.pdf",
13146+
"md5": "78ee015a604678a4efbdcd993e0d77aa",
13147+
"rounds": 1,
13148+
"link": true,
13149+
"type": "eq",
13150+
"useWasm": false
1314213151
}
1314313152
]

0 commit comments

Comments
 (0)