Files
node/test/parallel
Brian White f3cf8e9808 fs: do not pass Buffer when toString() fails
Even though an Error object is passed to the callback when readFile()
fails due to toString() failing, it is a bit strange to still see
data passed as the second argument. This commit changes that and only
passes the Error object in that case.

PR-URL: https://github.com/nodejs/node/pull/9670
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2016-12-14 03:29:33 -05:00
..
2016-10-10 08:52:03 -07:00
2016-12-04 21:01:40 -08:00
2016-11-29 07:33:24 -05:00
2016-07-14 22:07:14 -04:00
2016-11-29 13:07:46 +01:00
2016-12-04 20:21:18 -08:00
2016-10-10 08:52:03 -07:00
2016-12-13 15:59:35 -05:00
2016-07-14 22:07:14 -04:00
2016-07-14 22:07:14 -04:00
2016-07-14 22:07:14 -04:00
2016-11-25 20:23:12 -08:00
2016-09-30 10:57:19 -07:00
2016-07-14 22:07:14 -04:00
2016-04-08 13:58:48 -07:00
2016-07-14 22:07:14 -04:00
2016-07-14 22:07:14 -04:00
2016-12-03 11:13:05 +01:00
2016-09-24 17:17:08 +02:00
2016-11-13 13:25:19 -08:00