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(Headers): do not brand-check toString & Symbol.toStringTag #1430

Merged
merged 3 commits into from May 11, 2022

Conversation

KhafraDev
Copy link
Member

image

Fixes 2 bugs:

  1. Headers.toString should be inherited from Object's prototype.
  2. The Symbol.toStringTag getter should not be brand checked.

test/fetch/headers.js Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented May 10, 2022

Codecov Report

Merging #1430 (95eba56) into main (b1a6278) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1430      +/-   ##
==========================================
- Coverage   94.34%   94.34%   -0.01%     
==========================================
  Files          49       49              
  Lines        4243     4241       -2     
==========================================
- Hits         4003     4001       -2     
  Misses        240      240              
Impacted Files Coverage Δ
lib/fetch/headers.js 95.17% <ø> (-0.07%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1a6278...95eba56. Read the comment docs.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit da7efd7 into nodejs:main May 11, 2022
@KhafraDev KhafraDev deleted the headers-tostring-fixes branch May 11, 2022 14:44
KhafraDev added a commit to KhafraDev/undici that referenced this pull request Jun 23, 2022
metcoder95 pushed a commit to metcoder95/undici that referenced this pull request Dec 26, 2022
crysmags pushed a commit to crysmags/undici that referenced this pull request Feb 27, 2024
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.

None yet

4 participants