SamVerschueren / decode-uri-component

A better decodeURIComponent
MIT License
146 stars 34 forks source link

"optional catch binding" causes compatibility issue in older browsers #16

Open KennanChan opened 1 year ago

KennanChan commented 1 year ago

While working on my project, I encountered an "Unexpected token {" error in an Android webview. This error is caused by the fact that the current version of Chrome (65.0.3325.109) does not support "optional catch binding". To ensure maximum compatibility, it may be reasonable for this library to add catch binding.

image
SamVerschueren commented 9 months ago

Isn't WebView handled by Chrome these days? Chrome 65 is like a very old version. Which Android version is this?

MoneyMouthBottom commented 2 months ago

😘