We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74597b6 commit c6d6968Copy full SHA for c6d6968
packages/core/src/worker.js
@@ -1,5 +1,5 @@
1
export function handleMessage (e, callback) {
2
- if (e.data.__emnapi__) {
+ if (e && e.data && e.data.__emnapi__) {
3
const type = e.data.__emnapi__.type
4
const payload = e.data.__emnapi__.payload
5
callback(type, payload)
0 commit comments