Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1e98d90

Browse filesBrowse files
bnoordhuisrvagg
authored andcommitted
test: add regression test for --debug-brk -e 0
Check that `node --debug-brk -e 0` immediately quits. PR-URL: #3585 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d72bb1e commit 1e98d90
Copy full SHA for 1e98d90

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-debug-brk.js‎

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
const common = require('../common');
4+
const assert = require('assert');
5+
const spawnSync = require('child_process').spawnSync;
6+
7+
const args = [`--debug-brk=${common.PORT}`, `-e`, `0`];
8+
const proc = spawnSync(process.execPath, args, {encoding: 'utf8'});
9+
assert(/Debugger listening on/.test(proc.stderr));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.