un-ts / synckit

Perform async work synchronously in Node.js using `worker_threads` with first-class TypeScript and Yarn P'n'P support.
https://npm.im/synckit
MIT License
192 stars 11 forks source link

random undefined message causes synckit to throw an error #185

Open dylang opened 2 months ago

dylang commented 2 months ago

It looks like we are assuming all recieved messages are objects with a message property: https://github.com/un-ts/synckit/blob/main/src/index.ts#L548

However, sometimes, randomly, only in CI, it seems to receive undefined, which synckit doesn't handle, so it throws an error.

Related: https://github.com/prettier/eslint-plugin-prettier/issues/671