| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e578268 commit 56dd734
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,6 +91,12 @@ Http2Session::Http2Session(Environment* env, | |||
| 91 | 91 | prep_->data = static_cast<void*>(this); | |
| 92 | 92 | uv_prepare_start(prep_, [](uv_prepare_t* t) { | |
| 93 | 93 | Http2Session* session = static_cast<Http2Session*>(t->data); | |
| 94 | + HandleScope scope(session->env()->isolate()); | ||
| 95 | + Context::Scope context_scope(session->env()->context()); | ||
| 96 | + | ||
| 97 | + // Sending data may call arbitrary JS code, so keep track of | ||
| 98 | + // async context. | ||
| 99 | + InternalCallbackScope callback_scope(session); | ||
| 94 | 100 | session->SendPendingData(); | |
| 95 | 101 | }); | |
| 96 | 102 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments