The sendErrorMessage function is called with undefined.
negezor opened this issue · 1 comments
negezor commented
Hi, I've discovered an intermittent bug that is only fixed by reloading the browser.
Uncaught (in promise) TypeError: Cannot destructure property 'message' of 'e' as it is undefined.
at Pe (49d3298e-9912-4393-a26f-6a7894623a15:1:13914)
at De (49d3298e-9912-4393-a26f-6a7894623a15:1:13750)
Pe @ 49d3298e-9912-4393-a26f-6a7894623a15:1
De @ 49d3298e-9912-4393-a26f-6a7894623a15:1
await in De (async)
(anonymous) @ 49d3298e-9912-4393-a26f-6a7894623a15:1
The only place I found in the code that refers to this error is here
zip.js/lib/core/z-worker-core.js
Lines 127 to 129 in 4ab1265
Versions
@zip.js/zip.js: 2.7.20
Chrome: 115.0.5790.171
gildas-lormeau commented
Thank you for the report. I added a default value for the parameter passed to sendErrorMessage()
in the version 2.7.21
.
zip.js/lib/core/z-worker-core.js
Line 151 in 1b72460