Skip to content

Commit 5fd5bda

Browse files
committed
Update thrown error
1 parent 04f8b47 commit 5fd5bda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ Worker.prototype.thenList = function thenList(fns) {
473473
Worker.prototype.error = function error(msg) {
474474
// Throw the error in the Promise chain.
475475
return this.then(function error_main() {
476-
throw msg;
476+
throw new Error(msg);
477477
});
478478
};
479479

0 commit comments

Comments
 (0)