ES6 allows destructuring of function parameters, e.g.
export function knightTours(startPath, { board, boardSize }) {} 
Such a function is currently not correctly seralized / deserialized and therefore fails when being executed on a worker.
Add support for functions using destructuring.