Files
node/lib
Benjamin Gruenbaum c9c387fdac 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-22 11:13:03 -07:00
..
2015-10-08 17:32:08 -07:00
2016-01-26 20:53:05 +01:00
2016-03-21 15:48:51 -07:00
2016-03-21 15:48:51 -07:00
2016-03-15 09:25:35 -07:00
2016-03-20 11:49:02 +02:00
2016-03-21 15:48:51 -07:00
2016-01-31 19:16:09 +01:00
2016-03-21 15:48:51 -07:00
2015-12-25 13:05:23 -08:00
2016-03-17 23:20:12 -04:00
2016-03-21 15:48:51 -07:00
2016-03-21 12:35:12 -04:00
2015-12-25 13:05:23 -08:00
2015-01-31 23:47:29 -05:00