diff options
author | Trevor Norris <trev.norris@gmail.com> | 2015-01-07 14:13:35 -0800 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2015-01-07 14:21:02 -0800 |
commit | cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26 (patch) | |
tree | 5f7d34980bae628553d0ef83b786f8b5166201e4 /src/util.cc | |
parent | d55338662329ac37386783ef1aa88f099eff86b2 (diff) | |
download | node-new-cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26.tar.gz |
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/util.cc')
-rw-r--r-- | src/util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<v8::Value> value) +Utf8Value::Utf8Value(v8::Isolate* isolate, v8::Handle<v8::Value> value) : length_(0), str_(nullptr) { if (value.IsEmpty()) return; - v8::Local<v8::String> val_ = value->ToString(v8::Isolate::GetCurrent()); + v8::Local<v8::String> val_ = value->ToString(isolate); if (val_.IsEmpty()) return; |