diff --git a/src/node_stat_watcher.cc b/src/node_stat_watcher.cc index fab7c3ee5cd..e38d581113e 100644 --- a/src/node_stat_watcher.cc +++ b/src/node_stat_watcher.cc @@ -51,9 +51,9 @@ void StatWatcher::Callback(EV_P_ ev_stat *watcher, int revents) { StatWatcher *handler = static_cast(watcher->data); assert(watcher == &handler->watcher_); HandleScope scope; - Handle argv[2]; - argv[0] = Handle(BuildStatsObject(&watcher->attr)); - argv[1] = Handle(BuildStatsObject(&watcher->prev)); + Local argv[2]; + argv[0] = BuildStatsObject(&watcher->attr); + argv[1] = BuildStatsObject(&watcher->prev); MakeCallback(handler->handle_, "onchange", 2, argv); }