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

perf: always use the same prototype Iterator #2743

Merged
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
tsctx committed Feb 12, 2024
commit 0962d5a96e39b936c9628cafaca17e47dcc9bd4f
2 changes: 1 addition & 1 deletion lib/fetch/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ function iteratorMixin (name, object, kInternalIterator, keyIndex = 0, valueInde
`Failed to execute 'forEach' on '${name}': parameter 1 is not of type 'Function'.`
)
}
for (const { 0: key, 1: value } of createIterator(this, 'key+value')) {
for (const { 0: key, 1: value } of makeIterator(this, 'key+value')) {
callbackfn.call(thisArg, value, key, this)
}
}
Expand Down
Loading