-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cannot read property 'name' of undefined #258
Comments
👍🏼 for this request. Is the library still actively maintained? |
Yes. The bug seems to be out of scope of the lib tho, you could just add an if/else statement in your own code to handle this |
@steelbrain A common way to parse Is there anything which prevents php-serialize form using a more fail-proof method of identifying objects, like for instance:
|
https://nodejs.org/api/querystring.html#querystring_querystring_parse_str_sep_eq_options "The object returned by the querystring.parse() method does not prototypically inherit from the JavaScript Object. This means that typical Object methods such as obj.toString(), obj.hasOwnProperty(), and others are not defined and will not work." fix steelbrain#258
Node
querystring.parse
method returns an object with null prototype for security reasons.Passing that object to serialize() throws
Cannot read property 'name' of undefined
.Would it be possible to stop depending on the object's prototype in order to fix this issue?
Thanks!
Related:
The text was updated successfully, but these errors were encountered: