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: use DCHECK in AsyncWrap::MakeCallback instead emiting a warning · nodejs/node@ef7ffce

File tree

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

‎src/async_wrap.cc‎

Copy file name to clipboardExpand all lines: src/async_wrap.cc
+2-10Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
#include "env-inl.h"
2626
#include "node_errors.h"
2727
#include "node_external_reference.h"
28-
#ifdef DEBUG
29-
#include <node_process-inl.h>
30-
#endif
3128
#include "tracing/traced_value.h"
3229
#include "util-inl.h"
3330

@@ -677,13 +674,8 @@ MaybeLocal<Value> AsyncWrap::MakeCallback(const Local<Function> cb,
677674
Local<Value>* argv) {
678675
EmitTraceEventBefore();
679676

680-
#ifdef DEBUG
681-
if (context_frame().IsEmpty()) {
682-
ProcessEmitWarning(env(),
683-
"MakeCallback() called without context_frame, "
684-
"likely use after destroy of AsyncWrap.");
685-
}
686-
#endif
677+
// If this check fails it indicates an use after-free.
678+
DCHECK(!context_frame().IsEmpty());
687679

688680
ProviderType provider = provider_type();
689681
async_context context { get_async_id(), get_trigger_async_id() };

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.