summaryrefslogtreecommitdiff
path: root/test/parallel/test-module-cjs-helpers.js
blob: ccf95f3e81c14a70cd94bed8d1fae6a513fe3089 (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 ? 34 : 33;
assert.strictEqual(builtinLibs.length, expectedLibs);