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 8b355ea commit 4155358Copy full SHA for 4155358
src/process_wrap.cc
@@ -291,8 +291,7 @@ class ProcessWrap : public HandleWrap {
291
static void OnExit(uv_process_t* handle,
292
int64_t exit_status,
293
int term_signal) {
294
- ProcessWrap* wrap = static_cast<ProcessWrap*>(handle->data);
295
- CHECK_NOT_NULL(wrap);
+ ProcessWrap* wrap = ContainerOf(&ProcessWrap::process_, handle);
296
CHECK_EQ(&wrap->process_, handle);
297
298
Environment* env = wrap->env();
0 commit comments