diff --git a/lib/fs.js b/lib/fs.js index 72251d0b7537f4..04e7795baa3ff4 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -19,7 +19,7 @@ const Readable = Stream.Readable; const Writable = Stream.Writable; const kMinPoolSpace = 128; -const kMaxLength = require('internal/smalloc').kMaxLength; +const kMaxLength = process.binding('smalloc').kMaxLength; const O_APPEND = constants.O_APPEND || 0; const O_CREAT = constants.O_CREAT || 0;