summaryrefslogtreecommitdiff
path: root/src/node_stat_watcher.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-07-18 23:18:50 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-07-20 12:09:29 +0200
commitca9eb718fbf2cd2c60c7aeb3ca33413e17fcbbf0 (patch)
treeb9415d0e2f6005a651276cbc40d23196a8c02ddf /src/node_stat_watcher.cc
parent0161ec87af3d71b10d8ce679c8a1a64358fae8dc (diff)
downloadandroid-node-v8-ca9eb718fbf2cd2c60c7aeb3ca33413e17fcbbf0.tar.gz
android-node-v8-ca9eb718fbf2cd2c60c7aeb3ca33413e17fcbbf0.tar.bz2
android-node-v8-ca9eb718fbf2cd2c60c7aeb3ca33413e17fcbbf0.zip
src, lib: update after internal api change
Libuv now returns errors directly. Make everything in src/ and lib/ follow suit. The changes to lib/ are not strictly necessary but they remove the need for the abominations that are process._errno and node::SetErrno().
Diffstat (limited to 'src/node_stat_watcher.cc')
-rw-r--r--src/node_stat_watcher.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/node_stat_watcher.cc b/src/node_stat_watcher.cc
index 07ba5efce5..18dd34a0e3 100644
--- a/src/node_stat_watcher.cc
+++ b/src/node_stat_watcher.cc
@@ -86,9 +86,6 @@ void StatWatcher::Callback(uv_fs_poll_t* handle,
argv[0] = BuildStatsObject(curr);
argv[1] = BuildStatsObject(prev);
argv[2] = Integer::New(status, node_isolate);
- if (status == -1) {
- SetErrno(uv_last_error(wrap->watcher_->loop));
- }
if (onchange_sym.IsEmpty()) {
onchange_sym = String::New("onchange");
}