Skip to content

Commit

Permalink
Fix funny hidden bug #26
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Apr 5, 2018
1 parent eca6a27 commit f8c62d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -44,7 +44,7 @@ export default function workerize(code, options) {
worker.rpcMethods = {};
setup(worker, worker.rpcMethods, callbacks);
worker.expose = methodName => {
worker[i] = function() {
worker[methodName] = function() {
return worker.call(methodName, [].slice.call(arguments));
};
};
Expand Down

0 comments on commit f8c62d4

Please sign in to comment.