fs: use `kMaxLength` from binding
authorVladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
Fri, 5 Jun 2015 07:37:11 +0000 (10:37 +0300)
committerVladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
Fri, 5 Jun 2015 11:40:41 +0000 (14:40 +0300)
commit2dcef83b5fce615cc486ab10692a6925cba037ca
treec88f20ad538475cbb1006e6255c6b5639e12915d
parent81029c639ad5aa566d9ff25d31f73ef279ad2b8d
fs: use `kMaxLength` from binding

This allows `graceful-fs` to evaluate `fs` source
without access to internals.

This is a temporary workaround that makes npm work.

See: https://github.com/isaacs/node-graceful-fs/issues/41
Fixes: https://github.com/nodejs/io.js/issues/1898
PR-URL: https://github.com/nodejs/io.js/pull/1903
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
lib/fs.js