tj / node-querystring

querystring parser for node and the browser - supporting nesting (used by Express, Connect, etc)
MIT License
455 stars 66 forks source link

Blacklist instead of nullary objects #85

Closed eivindfjeldstad closed 10 years ago

eivindfjeldstad commented 10 years ago

Since support for __proto__ is unreliable, and since v8 apparently does not support it anymore, maybe doing something like this

if (Object.prototype[prop]) continue;
obj[prop] = val;

would be a better solution. We can also get rid of a lot of polyfills. What do you think?

eivindfjeldstad commented 10 years ago

86