fs: fix .write() not coercing non-string values
authorJeremiah Senkpiel <fishrock123@rocketmail.com>
Sun, 8 Mar 2015 20:19:56 +0000 (16:19 -0400)
committerBrendan Ashworth <brendan.ashworth@me.com>
Sun, 8 Mar 2015 21:42:09 +0000 (14:42 -0700)
commitcf565b5516507fe751879cbed48ce8260823f1c9
treeb479a56753b754bc1f48c1d8f81e85f43079cc13
parent4bd3620382a200736342b6c2adf12a3477e1d41f
fs: fix .write() not coercing non-string values

Fixes: https://github.com/iojs/io.js/issues/1098
PR-URL: https://github.com/iojs/io.js/pull/1102
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
lib/fs.js
test/parallel/test-fs-write-string-coerce.js [new file with mode: 0644]