mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Fixes #26669 The Blob case in `didReceiveBinaryData` was calling `decPendingActivityCount()` inside the `postTask` callback without a matching `incPendingActivityCount()` beforehand. This caused a crash ("Pure virtual function called!") when the WebSocket client received binary data (like ping frames) with `binaryType = "blob"` and no corresponding event listener attached. The bug was introduced in #21471 when Blob support was added. The ArrayBuffer and NodeBuffer cases correctly call `incPendingActivityCount()` before `postTask`, but the Blob case was missing this call. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>