8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d8d2e1 commit d54432fCopy full SHA for d54432f
src/stream_pipe.cc
@@ -72,7 +72,7 @@ void StreamPipe::Unpipe() {
72
// inside the garbage collector, so we can’t run JS here.
73
HandleScope handle_scope(env()->isolate());
74
BaseObjectPtr<StreamPipe> strong_ref{this};
75
- env()->SetImmediate([this](Environment* env) {
+ env()->SetImmediate([this, strong_ref](Environment* env) {
76
HandleScope handle_scope(env->isolate());
77
Context::Scope context_scope(env->context());
78
Local<Object> object = this->object();