Skip to content

Commit 46b1ffc

Browse files
committed
Bugfix: arguments serialization
1 parent a78358a commit 46b1ffc

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
@@ -45,7 +45,7 @@ export default function workerize(code, options) {
4545
setup(worker, worker.rpcMethods, callbacks);
4646
worker.expose = methodName => {
4747
worker[i] = function() {
48-
return worker.call(methodName, arguments);
48+
return worker.call(methodName, [].slice.call(arguments));
4949
};
5050
};
5151
for (i in exports) if (!(i in worker)) worker.expose(i);

0 commit comments

Comments
 (0)