Skip to content

Commit 554f86a

Browse files
authored
Pass worker as context, this not set inside arrow fn
1 parent f8c62d4 commit 554f86a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function workerize(code, options) {
3434
};
3535
worker.terminate = () => {
3636
URL.revokeObjectURL(url);
37-
term.call(this);
37+
term.call(worker);
3838
};
3939
worker.call = (method, params) => new Promise( (resolve, reject) => {
4040
let id = `rpc${++counter}`;

0 commit comments

Comments
 (0)