-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: change the promises to async/await in test-debugger-exec-scope.js
PR-URL: #44685 Reviewed-By: Rich Trott <[email protected]>
- Loading branch information
1 parent
2920b10
commit 4266670
Showing
2 changed files
with
23 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { skipIfInspectorDisabled } from '../common/index.mjs'; | ||
|
||
skipIfInspectorDisabled(); | ||
|
||
import { path } from '../common/fixtures.mjs'; | ||
import startCLI from '../common/debugger.js'; | ||
|
||
import assert from 'assert'; | ||
|
||
const cli = startCLI([path('debugger/backtrace.js')]); | ||
|
||
try { | ||
await cli.waitForInitialBreak(); | ||
await cli.waitForPrompt(); | ||
await cli.stepCommand('c'); | ||
await cli.command('exec .scope'); | ||
assert.match(cli.output, /'moduleScoped'/, 'displays closure from module body'); | ||
assert.match(cli.output, /'a'/, 'displays local / function arg'); | ||
assert.match(cli.output, /'l1'/, 'displays local scope'); | ||
assert.doesNotMatch(cli.output, /'encodeURIComponent'/, 'omits global scope'); | ||
} finally { | ||
await cli.quit(); | ||
} |