Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2015-01-08 00:29:58 +0300
committerTrevor Norris <trev.norris@gmail.com>2015-01-08 01:19:40 +0300
commitd55338662329ac37386783ef1aa88f099eff86b2 (patch)
tree0bf70e21e9c99e7d8faf62a28bfc4f0e92fa066b /src/spawn_sync.cc
parent6e9d1c868474273b3b5891508c28aa13f70ff465 (diff)
src: pass Isolate to additional locations
Due to a recent V8 upgrade, more methods require Isolate as an argument. PR-URL: https://github.com/iojs/io.js/pull/244 Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/spawn_sync.cc')
-rw-r--r--src/spawn_sync.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc
index bb5c606afce..62ef7e21bc4 100644
--- a/src/spawn_sync.cc
+++ b/src/spawn_sync.cc
@@ -958,7 +958,7 @@ int SyncProcessRunner::CopyJsString(Local<Value> js_value,
if (js_value->IsString())
js_string = js_value.As<String>();
else
- js_string = js_value->ToString();
+ js_string = js_value->ToString(env()->isolate());
// Include space for null terminator byte.
size = StringBytes::StorageSize(isolate, js_string, UTF8) + 1;
@@ -992,7 +992,7 @@ int SyncProcessRunner::CopyJsStringArray(Local<Value> js_value,
// needed - it's okay since we cloned the original object.
for (uint32_t i = 0; i < length; i++) {
if (!js_array->Get(i)->IsString())
- js_array->Set(i, js_array->Get(i)->ToString());
+ js_array->Set(i, js_array->Get(i)->ToString(env()->isolate()));
}
// Index has a pointer to every string element, plus one more for a final