Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-bootstrap-modules.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1fa5a643f6e308ffdcb88fda98c70e0a896c88ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Flags: --expose-internals
'use strict';

// This list must be computed before we require any modules to
// to eliminate the noise.
const list = process.moduleLoadList.slice();

const common = require('../common');
const assert = require('assert');

const isMainThread = common.isMainThread;
const kMaxModuleCount = isMainThread ? 63 : 85;

assert(list.length <= kMaxModuleCount,
       `Total length: ${list.length}\n` + list.join('\n')
);