zloirock / core-js

Standard Library
MIT License
24.59k stars 1.66k forks source link

Bug in some cases of `URLSearchParams` percent decoding #1357

Closed zloirock closed 3 months ago

zloirock commented 3 months ago
[...new URLSearchParams('?%C2').keys()][0];
[...new URLSearchParams('?%C2x').keys()][0];
[...new URLSearchParams('?%FE%FF').keys()][0];
[...new URLSearchParams('?%FF%FE').keys()][0];

Thanks @mhassan1 for pointing it.

It's too simplified.