mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
PR-URL: https://github.com/nodejs/node/pull/25112 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
16 lines
525 B
JavaScript
16 lines
525 B
JavaScript
/* eslint-disable node-core/required-modules */
|
|
|
|
'use strict';
|
|
|
|
// Ordinarily test files must require('common') but that action causes
|
|
// the global console to be compiled, defeating the purpose of this test.
|
|
// This makes sure no additional files are added without carefully considering
|
|
// lazy loading. Please adjust the value if necessary.
|
|
|
|
const list = process.moduleLoadList.slice();
|
|
|
|
const assert = require('assert');
|
|
|
|
assert(list.length <= 81,
|
|
`Expected <= 81 elements in moduleLoadLists, got ${list.length}`);
|