From 300596526647adc9da8db2615b3e70258de9e1bd Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 26 Mar 2012 07:02:00 -0700 Subject: [PATCH] stat_watcher: root JS objects in HandleScope with Local<> --- src/node_stat_watcher.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }