Files
node/test/parallel
Benjamin Gruenbaum 6a6112a2f3 dns: Use object without protoype for map
Currently we use `{}` for the `lookup` function to find the relevant
resolver to the dns.resolve function. It is preferable to use an
object without a Object.prototype, currently for example you can do
something like:

```js
dns.resolve("google.com", "toString", console.log);
```

And get `[Object undefined]` logged and the callback would never be
called. This is unexpected and strange behavior in my opinion.
In addition, if someone adds a property to `Object.prototype` might
also create unexpected results.

This pull request fixes it, with it an appropriate error is thrown.

PR-URL: https://github.com/nodejs/node/pull/5843
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-03-31 09:38:55 -05:00
..
2015-05-19 21:21:27 +02:00
2016-01-06 12:10:54 -05:00
2015-06-05 22:58:14 -04:00
2016-03-08 15:55:06 -05:00
2016-03-22 15:04:17 -04:00