}
if (args[3]->IsFunction()) {
- ASYNC_DEST_CALL(symlink, args[3], *dest, *dest, *path, flags)
+ ASYNC_DEST_CALL(symlink, args[3], *path, *dest, *path, flags)
} else {
- SYNC_DEST_CALL(symlink, *path, *dest, *dest, *path, flags)
+ SYNC_DEST_CALL(symlink, *dest, *path, *dest, *path, flags)
}
}
assert.ok(0 <= err.message.indexOf(existingFile2));
});
+fs.symlink(existingFile, existingFile2, function(err) {
+ assert.ok(0 <= err.message.indexOf(existingFile2));
+});
+
fs.unlink(fn, function(err) {
assert.ok(0 <= err.message.indexOf(fn));
});
try {
++expected;
+ fs.symlinkSync(existingFile, existingFile2);
+} catch (err) {
+ errors.push('symlink');
+ assert.ok(0 <= err.message.indexOf(existingFile2));
+}
+
+try {
+ ++expected;
fs.unlinkSync(fn);
} catch (err) {
errors.push('unlink');