summaryrefslogtreecommitdiff
path: root/test/parallel/test-module-cjs-helpers.js
blob: f6e80af032a2cd85d77ea2dc2b95b79674ad2252 (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';
// Flags: --expose-internals

require('../common');
const assert = require('assert');
const { builtinLibs } = require('internal/modules/cjs/helpers');

const hasInspector = process.config.variables.v8_enable_inspector === 1;

const expectedLibs = hasInspector ? 33 : 32;
assert.strictEqual(builtinLibs.length, expectedLibs);