fs: add error code on null byte paths
authorcjihrig <cjihrig@gmail.com>
Mon, 19 Jan 2015 21:50:43 +0000 (16:50 -0500)
committercjihrig <cjihrig@gmail.com>
Mon, 19 Jan 2015 23:07:46 +0000 (18:07 -0500)
commit03ee4d854744e83f99bc5857b98f75139c448564
treedf249f49bb781466d56b76f68568bba060bc3e70
parente2558f02dfb671fc74f5768d4401a826efb5c117
fs: add error code on null byte paths

This commit adds a code field to the error returned by
nullCheck().

Fixes: https://github.com/iojs/io.js/issues/517
PR-URL: https://github.com/iojs/io.js/pull/519
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
lib/fs.js
test/parallel/test-fs-null-bytes.js