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
fix test name
  • Loading branch information
tsctx committed Feb 12, 2024
commit f6f09ad55bec468a0d15e9628b4669332012d384
2 changes: 1 addition & 1 deletion test/fetch/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ test('Headers as Iterable', async (t) => {
deepStrictEqual([...headers], expected)
})

await t.test('Headers iterator', (t) => {
await t.test('always use the same prototype Iterator', (t) => {
const HeadersIteratorNext = Function.call.bind(Object.getPrototypeOf(new Headers()[Symbol.iterator]()).next)

const init = [
Expand Down