Skip to content

http: fix t.roundTrip undefined on js/wasm builds#53

Merged
deadprogram merged 1 commit into
mainfrom
fix-52
Apr 27, 2026
Merged

http: fix t.roundTrip undefined on js/wasm builds#53
deadprogram merged 1 commit into
mainfrom
fix-52

Conversation

@deadprogram
Copy link
Copy Markdown
Member

The js/wasm RoundTrip fallback called t.roundTrip(req), an upstream Go private method that was never backported to TinyGo's Transport stub.

Replace the call with an explicit error return, since the empty Transport has no dial capability and cannot perform a fallback round-trip.

Fixes #52

The js/wasm RoundTrip fallback called t.roundTrip(req), an upstream
Go private method that was never backported to TinyGo's Transport stub.

Replace the call with an explicit error return, since the empty
Transport has no dial capability and cannot perform a fallback
round-trip.

Fixes #52

Signed-off-by: deadprogram <ron@hybridgroup.com>
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.

net/http: t.roundTrip undefined on js+wasm build (TinyGo 0.41.0 / 0.41.1)

1 participant