mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 01:35:51 +00:00

The inspect function became very big and it's better to handle this in a separate file. PR-URL: https://github.com/nodejs/node/pull/22845 Reviewed-By: John-David Dalton <john.david.dalton@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
15 lines
458 B
JavaScript
15 lines
458 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 <= 76, list);
|