You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't run pgmock package: Worker has been terminated #20425
Update after #37075 merged: the reported error is gone, but pgmock still does not boot, so keeping this open.
postMessage to a terminated worker is now a no-op like in Node instead of throwing, so the InvalidStateError: Worker has been terminated from pgmock's boot path no longer occurs. Verified by running the snippet from the report: on bun 1.3.14 the boot log contains that DOMException three times before failing; on a build of main (5938918e7) it never appears.
The boot now fails later with pgmock's own Ping timed out while trying to boot pgmock. Its emulator workers spin on a SharedArrayBuffer that never appears to update, which matches #25677 (WASM writes to a shared WebAssembly.Memory not visible to workers). So the remaining blocker for pgmock looks like that issue rather than this one.
Activity
robobun commentedon Aug 9, 2026
Update after #37075 merged: the reported error is gone, but pgmock still does not boot, so keeping this open.
postMessageto a terminated worker is now a no-op like in Node instead of throwing, so theInvalidStateError: Worker has been terminatedfrom pgmock's boot path no longer occurs. Verified by running the snippet from the report: on bun 1.3.14 the boot log contains that DOMException three times before failing; on a build of main (5938918e7) it never appears.The boot now fails later with pgmock's own
Ping timed out while trying to boot pgmock. Its emulator workers spin on a SharedArrayBuffer that never appears to update, which matches #25677 (WASM writes to a sharedWebAssembly.Memorynot visible to workers). So the remaining blocker for pgmock looks like that issue rather than this one.