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): ensure prototype method signatures are correct #1428

Merged
merged 1 commit into from May 10, 2022

Conversation

KhafraDev
Copy link
Member

I don't know about fetch's WPTs, but when I was working on a spec-compliant localStorage/sessionStorage, there were tests to ensure the correct function length. Regardless, this change makes the behavior identical to browsers.

@codecov-commenter
Copy link

codecov-commenter commented May 9, 2022

Codecov Report

Merging #1428 (7dd6306) into main (e7f051f) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1428      +/-   ##
==========================================
+ Coverage   94.27%   94.34%   +0.06%     
==========================================
  Files          49       49              
  Lines        4244     4243       -1     
==========================================
+ Hits         4001     4003       +2     
+ Misses        243      240       -3     
Impacted Files Coverage Δ
lib/fetch/headers.js 95.23% <100.00%> (+1.99%) ⬆️

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 78f535f...7dd6306. Read the comment docs.

@KhafraDev KhafraDev changed the title fix(Headers): ensure <fn>.length is correct fix(Headers): ensure prototype method signatures are correct May 10, 2022
@ronag ronag merged commit b1a6278 into nodejs:main May 10, 2022
@KhafraDev KhafraDev deleted the headers-prototype-length branch May 10, 2022 14:00
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

3 participants