We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a78358a commit 46b1ffcCopy full SHA for 46b1ffc
src/index.js
@@ -45,7 +45,7 @@ export default function workerize(code, options) {
45
setup(worker, worker.rpcMethods, callbacks);
46
worker.expose = methodName => {
47
worker[i] = function() {
48
- return worker.call(methodName, arguments);
+ return worker.call(methodName, [].slice.call(arguments));
49
};
50
51
for (i in exports) if (!(i in worker)) worker.expose(i);
0 commit comments