Skip to content

Commit 577acca

Browse files
committed
test: remove obsolete debugger pre-break handling
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
1 parent ed33ae7 commit 577acca

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

test/common/debugger.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ if (common.isWindows || common.isMacOS) {
1414
TIMEOUT = common.platformTimeout(15000);
1515
}
1616

17-
function isPreBreak(output) {
18-
return /Break on start/.test(output) && /1 \(function \(exports/.test(output);
19-
}
20-
2117
function startCLI(args, flags = [], spawnOpts = {}, opts = { randomPort: true }) {
2218
let stderrOutput = '';
2319
const child = spawn(process.execPath, [
@@ -114,11 +110,6 @@ function startCLI(args, flags = [], spawnOpts = {}, opts = { randomPort: true })
114110

115111
async waitForInitialBreak() {
116112
await this.waitFor(/break (?:on start )?in/i);
117-
118-
if (isPreBreak(this.output)) {
119-
await this.command('next', false);
120-
return this.waitFor(/break in/);
121-
}
122113
},
123114

124115
get breakInfo() {

test/parallel/test-debugger-break.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const cli = startCLI([script]);
2222
);
2323
assert.match(
2424
cli.output,
25-
/> 1 (?:\(function \([^)]+\) \{ )?const x = 10;/,
25+
/> 1 const x = 10;/,
2626
'shows the source and marks the current line');
2727

2828
await cli.stepCommand('n');

0 commit comments

Comments
 (0)