From cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Wed, 7 Jan 2015 14:13:35 -0800 Subject: 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 --- src/fs_event_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fs_event_wrap.cc') diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc index 57d07272ec..be472dde76 100644 --- a/src/fs_event_wrap.cc +++ b/src/fs_event_wrap.cc @@ -110,7 +110,7 @@ void FSEventWrap::Start(const FunctionCallbackInfo& args) { return env->ThrowTypeError("Bad arguments"); } - node::Utf8Value path(args[0]); + node::Utf8Value path(env->isolate(), args[0]); unsigned int flags = 0; if (args[2]->IsTrue()) -- cgit v1.2.3