mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 15:30:56 +01:00
9d1c9d7e9b
We are migrating towards using internalBinding(\'options\').getOptions() instead of process.binding(\'config\') to access the value of the --experimental-vm-modules command line option. PR-URL: https://github.com/nodejs/node/pull/23586 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
16 lines
453 B
JavaScript
16 lines
453 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
// This is to ensure that the sendInspectorCommand function calls the error
|
|
// function if its called with the v8_enable_inspector is disabled
|
|
|
|
process.config.variables.v8_enable_inspector = 0;
|
|
const inspector = require('internal/util/inspector');
|
|
|
|
inspector.sendInspectorCommand(
|
|
common.mustNotCall('Inspector callback should not be called'),
|
|
common.mustCall(1),
|
|
);
|