mirror of
https://github.com/nodejs/node.git
synced 2025-05-07 15:35:41 +00:00

Instead of using process.config.variables.v8_enable_inspector to detect whether inspector is enabled in the build. PR-URL: https://github.com/nodejs/node/pull/25819 Refs: https://github.com/nodejs/node/issues/25343 Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
10 lines
279 B
JavaScript
10 lines
279 B
JavaScript
'use strict';
|
|
// Flags: --expose-internals
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const { builtinLibs } = require('internal/modules/cjs/helpers');
|
|
|
|
const expectedLibs = process.features.inspector ? 34 : 33;
|
|
assert.strictEqual(builtinLibs.length, expectedLibs);
|