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 — timers: check can_call_into_js in Immediates · nodejs/node@ba71fe8

File tree

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

‎src/env.cc‎

Copy file name to clipboardExpand all lines: src/env.cc
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,14 +457,17 @@ void Environment::CheckImmediate(uv_check_t* handle) {
457457

458458
env->RunAndClearNativeImmediates();
459459

460+
if (!env->can_call_into_js())
461+
return;
462+
460463
do {
461464
MakeCallback(env->isolate(),
462465
env->process_object(),
463466
env->immediate_callback_function(),
464467
0,
465468
nullptr,
466469
{0, 0}).ToLocalChecked();
467-
} while (env->immediate_info()->has_outstanding());
470+
} while (env->immediate_info()->has_outstanding() && env->can_call_into_js());
468471

469472
if (env->immediate_info()->ref_count() == 0)
470473
env->ToggleImmediateRef(false);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.