-
-
Notifications
You must be signed in to change notification settings - Fork 456
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
TypeError: Cannot convert a Symbol value to a string #312
Comments
These are the supported values: Lines 398 to 403 in 2099277
I guess we could improve the readme to mention those too, and also throw a more human-friendly error. |
@sindresorhus I feel like the Symbol value being ignored that would be better |
I disagree. That could hide bugs. I prefer strict type checking. This is also how the browser API works: new URLSearchParams({foo: Symbol()})
//=> Uncaught TypeError: Cannot convert a Symbol value to a string |
@sindresorhus but other packages like |
That is not a good argument for doing it. |
@sindresorhus anyway, it's up to you |
@sindresorhus Yes you were right, Symbol should not be converted to string , from mdn web docs |
We are having a similar issue
It's only happening to users on Edge 122. A very strange errror. The code is: const search = queryString.stringify({
'redirect-to': `${location.pathname}${location.search}`,
}); |
I am not sure if the Symbol value would be ignored
The text was updated successfully, but these errors were encountered: