PcaptureRejectionSymbol
Bun

property

worker_threads.MessagePort.captureRejectionSymbol

readonly static captureRejectionSymbol: typeof captureRejectionSymbol

Value: Symbol.for('nodejs.rejection')

See how to write a custom rejection handler.