node/test/parallel/test-bootstrap-modules.js
James M Snell b164a2e3bf
console: add trace-events for time and count
Add the `node.console` trace event category to capture
`console.count()`, `console.countReset()`, `console.time()`,
`console.timeLog()`, and `console.timeEnd()` to the trace
event log.

PR-URL: https://github.com/nodejs/node/pull/23703
Backport-PR-URL: https://github.com/nodejs/node/pull/28840
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2020-03-09 11:08:49 +00:00

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 <= 83,
`Expected <= 83 elements in moduleLoadLists, got ${list.length}`);