Lines Matching refs:env

69   HandleScope handle_scope(env()->isolate());
71 env()->SetImmediate([this, strong_ref](Environment* env) {
72 HandleScope handle_scope(env->isolate());
73 Context::Scope context_scope(env->context());
77 if (!object->Get(env->context(), env->onunpipe_string()).ToLocal(&onunpipe))
85 Local<Value> null = Null(env->isolate());
89 if (!object->Get(env->context(), env->source_string()).ToLocal(&source_v) ||
90 !object->Get(env->context(), env->sink_string()).ToLocal(&sink_v) ||
95 if (object->Set(env->context(), env->source_string(), null).IsNothing() ||
96 object->Set(env->context(), env->sink_string(), null).IsNothing() ||
98 ->Set(env->context(), env->pipe_target_string(), null)
101 ->Set(env->context(), env->pipe_source_string(), null)
112 return pipe->env()->allocate_managed_buffer(size);
118 std::unique_ptr<BackingStore> bs = pipe->env()->release_managed_buffer(buf_);
163 Environment* env = pipe->env();
164 HandleScope handle_scope(env->isolate());
165 Context::Scope context_scope(env->context());
166 if (pipe->MakeCallback(env->oncomplete_string(), 0, nullptr).IsEmpty())
174 HandleScope handle_scope(pipe->env()->isolate());
225 HandleScope handle_scope(pipe->env()->isolate());
252 Environment* env = source->stream_env();
253 if (obj->Set(env->context(), env->source_string(), source->GetObject())
258 ->Set(env->context(), env->pipe_target_string(), obj)
262 if (obj->Set(env->context(), env->sink_string(), sink->GetObject())
267 ->Set(env->context(), env->pipe_source_string(), obj)
316 Environment* env = Environment::GetCurrent(context);
317 Isolate* isolate = env->isolate();
325 pipe->Inherit(AsyncWrap::GetConstructorTemplate(env));