Skip to content

Commit

Permalink
Merge pull request #4744 from activepieces/fix/dom-exception
Browse files Browse the repository at this point in the history
fix: sanitize functions before post message
  • Loading branch information
abuaboud committed May 22, 2024
2 parents 2cd6fcb + 274c29c commit daa169f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/engine/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ async function executeFromWorkerData(): Promise<void> {
const { operation, operationType } = workerData
const result = await execute(operationType, operation)
assertNotNullOrUndefined(parentPort, 'parentPort')
parentPort.postMessage({
type: 'result',
message: result,
})
const resultParsed = JSON.parse(JSON.stringify(result))
parentPort.postMessage({ type: 'result', message: resultParsed })
}

const operationType = argv[2]
Expand Down

0 comments on commit daa169f

Please sign in to comment.