summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2015-01-07 14:13:35 -0800
committerTrevor Norris <trev.norris@gmail.com>2015-01-07 14:21:02 -0800
commitcbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26 (patch)
tree5f7d34980bae628553d0ef83b786f8b5166201e4 /src/util.cc
parentd55338662329ac37386783ef1aa88f099eff86b2 (diff)
downloadandroid-node-v8-cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26.tar.gz
android-node-v8-cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26.tar.bz2
android-node-v8-cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26.zip
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.cc4
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;