From b851469855862f5fd1e5da38bbcd944c9987cd02 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 7 Jul 2019 12:44:07 -0400 Subject: src: simplify DEP0062 logic This commit simplifies the DEP0062 error logic. Instead of looking for certain combinations of flags, just show an error for any usage of --debug or --debug-brk. PR-URL: https://github.com/nodejs/node/pull/28589 Fixes: https://github.com/nodejs/node/issues/28588 Reviewed-By: Ruben Bridgewater Reviewed-By: Franziska Hinkelmann Reviewed-By: Rich Trott --- test/sequential/test-inspector-invalid-args.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sequential/test-inspector-invalid-args.js') diff --git a/test/sequential/test-inspector-invalid-args.js b/test/sequential/test-inspector-invalid-args.js index ae051b92ce..846a46a429 100644 --- a/test/sequential/test-inspector-invalid-args.js +++ b/test/sequential/test-inspector-invalid-args.js @@ -10,7 +10,7 @@ const execFile = require('child_process').execFile; const mainScript = fixtures.path('loop.js'); const expected = '`node --debug` and `node --debug-brk` are invalid. ' + - 'Please use `node --inspect` or `node --inspect-brk` instead.'; + 'Please use `node --inspect` and `node --inspect-brk` instead.'; for (const invalidArg of ['--debug-brk', '--debug']) { execFile( process.execPath, -- cgit v1.2.3