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/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util.cc') diff --git a/src/util.cc b/src/util.cc index a42e893401..9a21709150 100644 --- a/src/util.cc +++ b/src/util.cc @@ -25,12 +25,12 @@ namespace node { -Utf8Value::Utf8Value(v8::Handle value) +Utf8Value::Utf8Value(v8::Isolate* isolate, v8::Handle value) : length_(0), str_(nullptr) { if (value.IsEmpty()) return; - v8::Local val_ = value->ToString(v8::Isolate::GetCurrent()); + v8::Local val_ = value->ToString(isolate); if (val_.IsEmpty()) return; -- cgit v1.2.3