`let` declaration breaks worker
Axure opened this issue · comments
Hu Zheng commented
The onmessage
function provided in the worker file magick.js
from 'distis declared with
let. Therefore
onmessageis not a property of
self`, making the script fail to work as expected.
The example given in README.md
works, because inside their magick.js
, onmessage
is introduced without any keyword.
Nick Maliwacki commented
fixed in f07635e
Nick Maliwacki commented