forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
querystring: avoid conflicts with Object.prototype and __proto__
In order to solve nodejs#5642 , keeping an eye and actually most likely improving performance for nodejs#728, this PR is meant to show a better way to deal with inheritance. As most common CS related problem say, "hashes" are faster than O(N*?) searches in an array and this is the reason I've proposed a solution based on `in` operator first.
- Loading branch information
1 parent
0ea3899
commit b121816
Showing
1 changed file
with
61 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters