| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5390d7e commit e578268
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1381,6 +1381,12 @@ CallbackScope::~CallbackScope() { | |||
| 1381 | 1381 | delete private_; | |
| 1382 | 1382 | } | |
| 1383 | 1383 | ||
| 1384 | + InternalCallbackScope::InternalCallbackScope(AsyncWrap* async_wrap) | ||
| 1385 | + : InternalCallbackScope(async_wrap->env(), | ||
| 1386 | + async_wrap->object(), | ||
| 1387 | + { async_wrap->get_async_id(), | ||
| 1388 | + async_wrap->get_trigger_async_id() }) {} | ||
| 1389 | + | ||
| 1384 | 1390 | InternalCallbackScope::InternalCallbackScope(Environment* env, | |
| 1385 | 1391 | Local<Object> object, | |
| 1386 | 1392 | const async_context& asyncContext, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -282,6 +282,8 @@ class InternalCallbackScope { | |||
| 282 | 282 | v8::Local<v8::Object> object, | |
| 283 | 283 | const async_context& asyncContext, | |
| 284 | 284 | ResourceExpectation expect = kRequireResource); | |
| 285 | + // Utility that can be used by AsyncWrap classes. | ||
| 286 | + explicit InternalCallbackScope(AsyncWrap* async_wrap); | ||
| 285 | 287 | ~InternalCallbackScope(); | |
| 286 | 288 | void Close(); | |
| 287 | 289 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments