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