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 — fix: skip builtin loading in async leak detector (#11598) · vitest-dev/vitest@fe86a64

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/vitest/src/runtime
    • detect-async-leaks.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/vitest/src/runtime/detect-async-leaks.ts‎

Copy file name to clipboardExpand all lines: packages/vitest/src/runtime/detect-async-leaks.ts
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ export function detectAsyncLeaks(
4747
Error.stackTraceLimit = limit
4848
}
4949

50+
// a builtin loaded on first use can create pending promises at the module level
51+
if (stack.includes('node:internal/bootstrap/realm')) {
52+
return
53+
}
54+
5055
if (!stack.includes(testFile)) {
5156
const trigger = resources.get(triggerAsyncId)
5257

0 commit comments

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