Skip to content

Commit 0322d54

Browse files
committed
internal: emit experimental warning when using --inspect
This is currently an experimental feature, so we should make sure users are aware that it can be changed at any time. Ref: #9036
1 parent bb243f0 commit 0322d54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/internal/bootstrap_node.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050

5151
_process.setupRawDebug();
5252

53+
// TODO(evanlucas) Remove this when v8_inspector is no longer experimental.
54+
if (process.execArgv.indexOf('--inspect') !== -1) {
55+
process.nextTick(() => process.emitExperimentalWarning('v8_inspector'));
56+
}
57+
5358
Object.defineProperty(process, 'argv0', {
5459
enumerable: true,
5560
configurable: false,

0 commit comments

Comments
 (0)