Using Pivot webWorker doesn't work when there is custom operation

I have a pivot table that uses some custom operations that are added using addOperation() or addTotalOperation().

When I use webWorker, I get the error “Uncaught TypeError: config.operations.get(…) is not a function” in pivot.worker_debug.js:940

Has anybody successfully used pivot webWorker while using a custom operation?