var type = (typeof type_ === 'string' ? type_ : null);
var callback = makeCallback(arguments[arguments.length - 1]);
- binding.symlink(preprocessSymlinkDestination(destination),
+ binding.symlink(preprocessSymlinkDestination(destination, type),
pathModule._makeLong(path),
type,
callback);
fs.symlinkSync = function(destination, path, type) {
type = (typeof type === 'string' ? type : null);
- return binding.symlink(preprocessSymlinkDestination(destination),
+ return binding.symlink(preprocessSymlinkDestination(destination, type),
pathModule._makeLong(path),
type);
};