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

Fixup buggy URLSearchParams iterators #353

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Fixup buggy URLSearchParams iterators #353

merged 1 commit into from
Feb 9, 2023

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Feb 8, 2023

Copy link
Collaborator

@harrishancock harrishancock left a comment

Choose a reason for hiding this comment

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

I don't actually see the bug...

return kj::arr(kj::str(key), kj::str(value));
} else if constexpr (kj::isSameType<Type, KeyIteratorType>()) {
return kj::str(key);
} else if constexpr (kj::isSameType<Type, ValueIteratorType>()) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@harrishancock ... the bug was here. KeyIteratorType and ValueIteratorType were the same type. doh.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, wow.

@jasnell jasnell merged commit 924492e into cloudflare:main Feb 9, 2023
@jasnell jasnell deleted the jsnell/fixup-buggy-urlsearchparams-iterators branch February 9, 2023 01:47
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.

2 participants