const { name, taskId, data } = task
const taskFunctionName = name ?? DEFAULT_TASK_NAME
if (!this.taskFunctions.has(taskFunctionName)) {
this.sendToMainWorker({
workerError: {
const { name, taskId, data } = task
const taskFunctionName = name ?? DEFAULT_TASK_NAME
if (!this.taskFunctions.has(taskFunctionName)) {
this.sendToMainWorker({
workerError: {