summaryrefslogtreecommitdiff
path: root/src/fs_event_wrap.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-11-05 08:23:58 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-11-05 08:27:05 +0100
commit515607a740222f9a9d25009b739bcd572720b793 (patch)
tree82697b69df04452a776ba8209840afcba78e27f4 /src/fs_event_wrap.cc
parent7acdabbf5005dd8b77548f4b0ff9edd525ea662d (diff)
downloadandroid-node-v8-515607a740222f9a9d25009b739bcd572720b793.tar.gz
android-node-v8-515607a740222f9a9d25009b739bcd572720b793.tar.bz2
android-node-v8-515607a740222f9a9d25009b739bcd572720b793.zip
fs: make fs.watch() non-recursive by default
Fixes a behavioral regression introduced in commit 691b9eb.
Diffstat (limited to 'src/fs_event_wrap.cc')
-rw-r--r--src/fs_event_wrap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc
index 076a224b39..5dbc278846 100644
--- a/src/fs_event_wrap.cc
+++ b/src/fs_event_wrap.cc
@@ -110,8 +110,8 @@ void FSEventWrap::Start(const FunctionCallbackInfo<Value>& args) {
String::Utf8Value path(args[0]);
- int flags = 0;
- if (args[1]->IsTrue())
+ unsigned int flags = 0;
+ if (args[2]->IsTrue())
flags |= UV_FS_EVENT_RECURSIVE;
int err = uv_fs_event_init(wrap->env()->event_loop(), &wrap->handle_);