diff options
author | cjihrig <cjihrig@gmail.com> | 2019-07-07 12:44:07 -0400 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2019-07-20 11:05:24 +0200 |
commit | c432ab13918c087597ecfcdf137cc4fd319c05e7 (patch) | |
tree | 87bd37d521005b8e3f29bc5b8ff25a8bcdb0747c /test | |
parent | 608d6ed0907da5d358cc730b0123885787c11757 (diff) | |
download | android-node-v8-c432ab13918c087597ecfcdf137cc4fd319c05e7.tar.gz android-node-v8-c432ab13918c087597ecfcdf137cc4fd319c05e7.tar.bz2 android-node-v8-c432ab13918c087597ecfcdf137cc4fd319c05e7.zip |
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 <ruben@bridgewater.de>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/sequential/test-inspector-invalid-args.js | 2 |
1 files changed, 1 insertions, 1 deletions
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, |