Skip to content

Commit 53f6077

Browse files
authored
Merge pull request #28 from boblauer/master
Pass worker as context, `this` not set inside arrow fn
2 parents f8c62d4 + 554f86a commit 53f6077

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)