}
-Local<Object> SyncProcessStdioPipe::GetOutputAsBuffer(Isolate* isolate) const {
+Local<Object> SyncProcessStdioPipe::GetOutputAsBuffer(Environment* env) const {
size_t length = OutputLength();
- Local<Object> js_buffer = Buffer::New(isolate, length);
+ Local<Object> js_buffer = Buffer::New(env, length);
CopyOutput(Buffer::Data(js_buffer));
return js_buffer;
}
for (uint32_t i = 0; i < stdio_count_; i++) {
SyncProcessStdioPipe* h = stdio_pipes_[i];
if (h != nullptr && h->writable())
- js_output->Set(i, h->GetOutputAsBuffer(env()->isolate()));
+ js_output->Set(i, h->GetOutputAsBuffer(env()));
else
js_output->Set(i, Null(env()->isolate()));
}
int Start();
void Close();
- Local<Object> GetOutputAsBuffer(Isolate* isolate) const;
+ Local<Object> GetOutputAsBuffer(Environment* env) const;
inline bool readable() const;
inline bool writable() const;