mirror of https://github.com/nodejs/node.git
update fs_event_wrap.cc to work with new uv_fs_event_init api
parent
6545a6dc5d
commit
1a9286c6e9
|
@ -105,7 +105,7 @@ Handle<Value> FSEventWrap::Start(const Arguments& args) {
|
||||||
|
|
||||||
String::Utf8Value path(args[0]->ToString());
|
String::Utf8Value path(args[0]->ToString());
|
||||||
|
|
||||||
int r = uv_fs_event_init(uv_default_loop(), &wrap->handle_, *path, OnEvent);
|
int r = uv_fs_event_init(uv_default_loop(), &wrap->handle_, *path, OnEvent, 0);
|
||||||
if (r == 0) {
|
if (r == 0) {
|
||||||
// Check for persistent argument
|
// Check for persistent argument
|
||||||
if (!args[1]->IsTrue()) {
|
if (!args[1]->IsTrue()) {
|
||||||
|
|
Loading…
Reference in New Issue