Skip to content

Commit

Permalink
internal: emit experimental warning when using --inspect
Browse files Browse the repository at this point in the history
This is currently an experimental feature, so we should make sure users
are aware that it can be changed at any time.

Ref: nodejs#9036
  • Loading branch information
evanlucas committed Oct 31, 2016
1 parent bb243f0 commit 0322d54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@

_process.setupRawDebug();

// TODO(evanlucas) Remove this when v8_inspector is no longer experimental.
if (process.execArgv.indexOf('--inspect') !== -1) {
process.nextTick(() => process.emitExperimentalWarning('v8_inspector'));
}

Object.defineProperty(process, 'argv0', {
enumerable: true,
configurable: false,
Expand Down

0 comments on commit 0322d54

Please sign in to comment.