mirror of https://github.com/nodejs/node.git
fix test-fs-realpath
parent
fcfec075e3
commit
ef523e5719
|
@ -154,7 +154,7 @@ static void After(uv_fs_t *req) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UV_FS_READLINK:
|
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;
|
break;
|
||||||
|
|
||||||
case UV_FS_READ:
|
case UV_FS_READ:
|
||||||
|
@ -441,7 +441,7 @@ static Handle<Value> ReadLink(const Arguments& args) {
|
||||||
ASYNC_CALL(readlink, args[1], *path)
|
ASYNC_CALL(readlink, args[1], *path)
|
||||||
} else {
|
} else {
|
||||||
SYNC_CALL(readlink, *path, *path)
|
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__
|
#endif // __POSIX__
|
||||||
|
|
Loading…
Reference in New Issue