Commit 5fecf35
committed
Fix worker onmessage dropping falsy results, hanging failed verify
The e.data guard used a falsy check, so a legitimate falsy result (verify
posts boolean false on signature mismatch) was treated as an empty message
and dropped, leaving the operation promise unsettled. Use a null/undefined
check so falsy-but-valid results still complete the operation.1 parent f4f5b68 commit 5fecf35
3 files changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9299 | 9299 | | |
9300 | 9300 | | |
9301 | 9301 | | |
9302 | | - | |
| 9302 | + | |
9303 | 9303 | | |
9304 | 9304 | | |
9305 | 9305 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
| |||
0 commit comments