Skip to content

Commit ffc4fad

Browse files
Ankita-Khiratkarjuanarbol
authored andcommitted
test: change the promises to async/await in test-debugger-exec-scope.js
PR-URL: #44685 Reviewed-By: Rich Trott <[email protected]>
1 parent c6289d6 commit ffc4fad

File tree

2 files changed

+23
-38
lines changed

2 files changed

+23
-38
lines changed

test/sequential/test-debugger-exec-scope.js

-38
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { skipIfInspectorDisabled } from '../common/index.mjs';
2+
3+
skipIfInspectorDisabled();
4+
5+
import { path } from '../common/fixtures.mjs';
6+
import startCLI from '../common/debugger.js';
7+
8+
import assert from 'assert';
9+
10+
const cli = startCLI([path('debugger/backtrace.js')]);
11+
12+
try {
13+
await cli.waitForInitialBreak();
14+
await cli.waitForPrompt();
15+
await cli.stepCommand('c');
16+
await cli.command('exec .scope');
17+
assert.match(cli.output, /'moduleScoped'/, 'displays closure from module body');
18+
assert.match(cli.output, /'a'/, 'displays local / function arg');
19+
assert.match(cli.output, /'l1'/, 'displays local scope');
20+
assert.doesNotMatch(cli.output, /'encodeURIComponent'/, 'omits global scope');
21+
} finally {
22+
await cli.quit();
23+
}

0 commit comments

Comments
 (0)