Closed algesten closed 8 years ago
On node 6.5.0 I can't find the constants using require('constants'). I can find them using process.binding('constants').os.errno and process.binding('constants').fs.
require('constants')
process.binding('constants').os.errno
process.binding('constants').fs
By inlining the constants, we can be back- and forwards compatible.
I get problems with this
On node 6.5.0 I can't find the constants using
require('constants')
. I can find them usingprocess.binding('constants').os.errno
andprocess.binding('constants').fs
.By inlining the constants, we can be back- and forwards compatible.