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

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);