Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Make ResponseWrapper an instance of Response #2889

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Nov 15, 2024

Overwrite [Symbol.hasInstance] on the exposed Response class slightly to make ResponseWrapper pass instanceof checks. This prevents fetch responses from failing when using WASM bindgen for instance.

Fixes #2891

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.49%. Comparing base (2d6575e) to head (89024f6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2889   +/-   ##
=======================================
  Coverage   94.49%   94.49%           
=======================================
  Files         486      486           
  Lines       10401    10404    +3     
  Branches     1595     1596    +1     
=======================================
+ Hits         9828     9831    +3     
  Misses        573      573           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@FrederikBolding FrederikBolding marked this pull request as ready for review November 19, 2024 11:40
@FrederikBolding FrederikBolding requested a review from a team as a code owner November 19, 2024 11:40
Copy link

@naugtur naugtur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FrederikBolding FrederikBolding force-pushed the fb/reponsewrapper-instanceof-response branch from d2a506a to 89024f6 Compare November 19, 2024 14:47
@FrederikBolding FrederikBolding merged commit 96a29cb into main Nov 19, 2024
166 checks passed
@FrederikBolding FrederikBolding deleted the fb/reponsewrapper-instanceof-response branch November 19, 2024 14:56
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.

Fix issues with doing instanceof checks to fetch responses
3 participants