Skip to content

Commit 6fb5daf

Browse files
dfedermmichael-ciniawsky
authored andcommitted
fix(WorkerError): handle undefined error stacks (#20)
1 parent 9345756 commit 6fb5daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WorkerError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const stack = (err, worker, workerId) => {
2-
const originError = err.stack
2+
const originError = (err.stack || '')
33
.split('\n')
44
.filter(line => line.trim().startsWith('at'));
55

0 commit comments

Comments
 (0)