// for a success, which is possible.
if (req->result == -1) {
// If the request doesn't have a path parameter set.
-
+
if (!req->path) {
argv[0] = ErrnoException(req->errorno);
} else {
break;
case UV_FS_READLINK:
- argv[1] = String::New(static_cast<char*>(req->ptr), req->result);
+ argv[1] = String::New(static_cast<char*>(req->ptr));
break;
case UV_FS_READ:
ASYNC_CALL(readlink, args[1], *path)
} else {
SYNC_CALL(readlink, *path, *path)
- return scope.Close(String::New((char*)SYNC_REQ.ptr, SYNC_REQ.result));
+ return scope.Close(String::New((char*)SYNC_REQ.ptr));
}
}
#endif // __POSIX__