We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d4ec42 commit 06bff18Copy full SHA for 06bff18
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