GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: replace handle dereference with ContainerOf · nodejs/node@4155358

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • process_wrap.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/process_wrap.cc‎

Copy file name to clipboardExpand all lines: src/process_wrap.cc
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,7 @@ class ProcessWrap : public HandleWrap {
291291
static void OnExit(uv_process_t* handle,
292292
int64_t exit_status,
293293
int term_signal) {
294-
ProcessWrap* wrap = static_cast<ProcessWrap*>(handle->data);
295-
CHECK_NOT_NULL(wrap);
294+
ProcessWrap* wrap = ContainerOf(&ProcessWrap::process_, handle);
296295
CHECK_EQ(&wrap->process_, handle);
297296

298297
Environment* env = wrap->env();

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.