Skip to content

Fix crash in popCallback when callback is missing#48

Merged
andrey-skl merged 1 commit intomasterfrom
fix-success-callback
Feb 20, 2026
Merged

Fix crash in popCallback when callback is missing#48
andrey-skl merged 1 commit intomasterfrom
fix-success-callback

Conversation

@andrey-skl
Copy link
Collaborator

Summary

  • Guard against undefined callback entry in popCallback to prevent "Cannot read properties of undefined (reading 'successCallback')" when a duplicate or stale response arrives for a callId that was already consumed or never registered.

Test plan

  • Verify normal remote method calls still resolve/reject correctly
  • Verify no crash when a duplicate TYPE_RESPONSE message arrives for the same callId

Guard against undefined callback entry to prevent
"Cannot read properties of undefined (reading 'successCallback')"
when a duplicate or stale response arrives.
@andrey-skl andrey-skl merged commit 3f0e5ab into master Feb 20, 2026
2 checks passed
@andrey-skl andrey-skl deleted the fix-success-callback branch February 20, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant