inexorabletash/polyfill

Feature Request: pass object and array of arrays to the URLSearchParams constructor

Closed this issue · 3 comments

vkrol commented

Hello!

The URL specification was updated recently. Now we can pass an object or an array of arrays to the URLSearchParams constructor.

whatwg/url@31ddc5b
https://url.spec.whatwg.org/#interface-urlsearchparams

It would be great if the polyfill will support this feature.

Thanks!

Thanks for pointing this out! Can you give the latest code a try?

Since existing native implementations (e.g. in Chrome) don't support this yet I override the constructor in those cases.

Assuming this seems acceptable I'll push a new release.

vkrol commented

@inexorabletash this is awesome! Thanks.

vkrol commented

@inexorabletash

Assuming this seems acceptable I'll push a new release.

When you want to push a new release? 😃