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 — test: deflake debugger function name extraction · nodejs/node@a4c1f1d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-debugger-extract-function-name.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-debugger-extract-function-name.mjs‎

Copy file name to clipboardExpand all lines: test/parallel/test-debugger-extract-function-name.mjs
+5-7Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ import startCLI from '../common/debugger.js';
77

88
import assert from 'assert';
99

10-
const env = {
11-
...process.env,
12-
NODE_INSPECT_RESUME_ON_START: '1',
13-
};
14-
const cli = startCLI(
15-
[fixtures.path('debugger', 'alive.js')], [], { env });
10+
// Evaluating while the target is running can trigger a V8 scope assertion.
11+
// Keep it paused for these formatting checks.
12+
const cli = startCLI([fixtures.path('debugger', 'three-lines.js')]);
1613

1714
try {
15+
await cli.waitForInitialBreak();
1816
await cli.waitForPrompt();
1917
await cli.command('exec a = function func() {}; a;');
2018
assert.match(cli.output, /\[Function: func\]/);
@@ -33,5 +31,5 @@ try {
3331
await cli.command('exec a = function * func() {}; a;');
3432
assert.match(cli.output, /\[GeneratorFunction\]/);
3533
} finally {
36-
cli.quit();
34+
await cli.quit();
3735
}

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.