Skip to content

Commit

Permalink
fixup! debugger: throw debugger error when the frame is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
cola119 committed Apr 18, 2022
1 parent 396b190 commit ae6defd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/sequential/test-debugger-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ const assert = require('assert');

const cli = startCLI([fixtures.path('debugger/three-lines.js')]);

function onFatal(error) {
cli.quit();
throw error;
}

cli.waitForInitialBreak()
.then(() => cli.waitForPrompt())
.then(() => cli.command('list(0)'))
Expand All @@ -35,5 +30,5 @@ cli.waitForInitialBreak()
.then(() => {
assert.match(cli.output, /Uncaught Error \[ERR_DEBUGGER_ERROR\]: Requires execution to be paused/);
})
.then(() => cli.quit())
.then(null, onFatal);
.finally(() => cli.quit())
.then(common.mustCall());

0 comments on commit ae6defd

Please sign in to comment.