Repository navigation
fix(cloudflare): Keep Durable Object instance as this on non-RPC stubs - #27057
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
size-limit report 📦Compared: d7c3c1e (PR test merge using develop at 4c17f60) Against: 4c17f60 (develop) · base run #68523 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 1 not successful, 39 successful. See the run.
Successful checks
|
andreiborza
marked this pull request as ready for review
December 2, 2026 09:36
andreiborza
requested review from
chargome,
maxcell,
msonnb and
nicohrubec
and removed request for
Lms24,
isaacs and
logaretm
December 2, 2026 09:37
msonnb
approved these changes
Dec 2, 2026
nicohrubec
approved these changes
Dec 2, 2026
52 tasks done
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Methods on a Durable Object stub now run with the real object as
thiswhenget()returns the Durable Object instance itself, as some test setups (for example Bun) do. Durable Objects with#privatefields no longer throw there when the Worker useswithSentry.Real workerd stubs do not change. In fake setups, a method read from the stub is now a wrapper, not the original function. This was already true when
rpcTracePropagationBindingsis set.Why
Users could not run their tests with
withSentry, because every call to a Durable Object with private fields failed.Closes: #27046