-
Notifications
You must be signed in to change notification settings - Fork 7k
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
_.set does not work when Symbol is in path array #3189
Labels
Comments
Workaround
|
Thanks @Kefaise! |
jdalton
added a commit
that referenced
this issue
Feb 3, 2018
jdalton
added a commit
that referenced
this issue
Feb 3, 2018
This was referenced Apr 19, 2018
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Code to reproduce on lodash v4.17.4.
Throws exception
TypeError: Cannot convert a Symbol value to a string
in regexp inisIndex
function. It uses regexp to check if index is number as string, but unfortunately this value is not a string. From my brief analysisbaseSet
function checks if new value is Object, if not it assumes next path piece is either string or number and pass it toisIndex
function to determine if new value should be array or sub object. I think it should have third check if path is symbol.The text was updated successfully, but these errors were encountered: