| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dadcf6b commit 6838ad5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -394,9 +394,9 @@ void UDPWrap::OnRecv(uv_udp_t* handle, | |||
| 394 | 394 | ||
| 395 | 395 | ||
| 396 | 396 | Local<Object> UDPWrap::Instantiate(Environment* env, AsyncWrap* parent) { | |
| 397 | + EscapableHandleScope scope(env->isolate()); | ||
| 397 | 398 | // If this assert fires then Initialize hasn't been called yet. | |
| 398 | 399 | CHECK_EQ(env->udp_constructor_function().IsEmpty(), false); | |
| 399 | - EscapableHandleScope scope(env->isolate()); | ||
| 400 | 400 | Local<Value> ptr = External::New(env->isolate(), parent); | |
| 401 | 401 | return scope.Escape(env->udp_constructor_function()->NewInstance(1, &ptr)); | |
| 402 | 402 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments