Closed
Description
The following shows that when a key starts as an array, values that match Object.prototype
keys are basically treated as if they are just an empty bracket for some reason. I would not expect the 1
property to exist in the example below:
$ node -pe 'require("qs").parse("a[]=b&a[hasOwnProperty]=c&a[x]=y")'
{ a: { '0': 'b', '1': 'c', x: 'y' } }
$ node -pe 'require("qs/package").version'
2.4.1
Metadata
Metadata
Assignees
Projects
Relationships
Development
No branches or pull requests
Activity
dougwilson commentedon Mar 15, 2015
And the following parse is even more bizarre:
nlf commentedon May 21, 2015
this is related to #80