Commit dcbf246b authored by Sakthipriyan Vairamani's avatar Sakthipriyan Vairamani Committed by James M Snell
Browse files

fs: mkdtemp shouldn't crash if no callback passed

As it is, `fs.mkdtemp` crashes with a C++ assertion if the callback
function is not passed. This patch uses `maybeCallback` to create one,
if no callback function is passed.

PR-URL: https://github.com/nodejs/node/pull/6828


Reviewed-By: default avatarBrian White <mscdex@mscdex.net>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 2ef83590
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment