0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
Evan Lucas 57359cd1e4 fs: don't throw in read if buffer too big
If the resulting buffer.toString() call in fs.read throws, catch the
error and pass it back in the callback.

This issue only presents itself when fs.read is called using the legacy
string interface:

fs.read(fd, length, position, encoding, callback)

PR-URL: https://github.com/nodejs/node/pull/3503
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-10-25 21:24:12 -05:00
..
abort
addons test: add node::MakeCallback() test coverage 2015-10-23 18:43:06 +02:00
cctest
debugger test: load common.js in all tests 2015-10-06 15:11:47 -07:00
disabled test: replace deprecated util.debug() calls 2015-09-28 11:15:06 -07:00
fixtures util: Remove p, has been deprecated for years 2015-10-19 20:52:56 +02:00
gc
internet test: print helpful err msg on test-dns-ipv6.js 2015-10-25 09:39:02 -07:00
message test: remove flaky status from eval_messages test 2015-10-20 12:16:00 -07:00
parallel fs: don't throw in read if buffer too big 2015-10-25 21:24:12 -05:00
pummel test: wrap assert.fail when passed to callback 2015-10-24 14:42:41 -07:00
sequential test: wrap assert.fail when passed to callback 2015-10-24 14:42:41 -07:00
testpy
timers
.eslintrc test: make common.js mandatory via linting rule 2015-10-06 15:11:58 -07:00
common.js test: wrap assert.fail when passed to callback 2015-10-24 14:42:41 -07:00