You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node-tmp uses the internal 'constants' module to define error codes, such as EBADF and ENOENT which should be caught during cleanup. In node 6, error codes have been removed from the 'constants' module.
node-tmp uses the internal 'constants' module to define error codes, such as
EBADF
andENOENT
which should be caught during cleanup. In node 6, error codes have been removed from the 'constants' module.So, in node 6:
in node 4:
It seems that
_c.ENOENT
should be replaced by_c.os.errno.ENOENT
etc. in node 6.And
_c = require('constants')
should be replaced by_c = process.binding('constants')
... not really sure why the two aren't equal.Alternately, constants can be generated from
require('os').constants.errno
andrequire('fs').constants
in node 6.Although using
process.binding
isn't recommended (see nodejs/node#2768 etc.), I'm using it for compatibility between node 4 and 6The text was updated successfully, but these errors were encountered: