diff options
author | Trevor Norris <trev.norris@gmail.com> | 2015-01-08 01:13:35 +0300 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2015-01-08 01:21:02 +0300 |
commit | cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26 (patch) | |
tree | 5f7d34980bae628553d0ef83b786f8b5166201e4 /src/node_stat_watcher.cc | |
parent | d55338662329ac37386783ef1aa88f099eff86b2 (diff) |
src: pass Isolate to node::Utf8Value constructor
Initial attempt to remove all uses of Isolate::GetCurrent(). Still
exists a few locations, but this works out a heavy usage.
PR-URL: https://github.com/iojs/io.js/pull/244
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_stat_watcher.cc')
-rw-r--r-- | src/node_stat_watcher.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_stat_watcher.cc b/src/node_stat_watcher.cc index 43112933fef..ece49a96bb0 100644 --- a/src/node_stat_watcher.cc +++ b/src/node_stat_watcher.cc @@ -107,7 +107,7 @@ void StatWatcher::Start(const FunctionCallbackInfo<Value>& args) { CHECK_EQ(args.Length(), 3); StatWatcher* wrap = Unwrap<StatWatcher>(args.Holder()); - node::Utf8Value path(args[0]); + node::Utf8Value path(args.GetIsolate(), args[0]); const bool persistent = args[1]->BooleanValue(); const uint32_t interval = args[2]->Uint32Value(); |