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: replace .then chains with await · nodejs/node@24f045d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/common
    • debugger.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/common/debugger.js‎

Copy file name to clipboardExpand all lines: test/common/debugger.js
+6-7Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,12 @@ function startCLI(args, flags = [], spawnOpts = {}) {
104104
},
105105

106106
async waitForInitialBreak() {
107-
return this.waitFor(/break (?:on start )?in/i)
108-
.then(async () => {
109-
if (isPreBreak(this.output)) {
110-
return this.command('next', false)
111-
.then(() => this.waitFor(/break in/));
112-
}
113-
});
107+
await this.waitFor(/break (?:on start )?in/i);
108+
109+
if (isPreBreak(this.output)) {
110+
await this.command('next', false);
111+
return this.waitFor(/break in/);
112+
}
114113
},
115114

116115
get breakInfo() {

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.