diff --git a/lib/fs.js b/lib/fs.js index d1700a978fb..00f5805b26d 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -478,7 +478,7 @@ fs.readlinkSync = function(path) { fs.symlink = function(destination, path, type_, callback) { var type = (typeof(type_) == 'string' ? type_ : null); var callback_ = arguments[arguments.length - 1]; - callback = (typeof(callback_) == 'function' ? callback_ : null); + callback = (typeof(callback_) == 'function' ? callback_ : noop); if (isWindows && type === 'junction') { destination = pathModule._makeLong(destination);