mirror of
https://github.com/zebrajr/node.git
synced 2025-12-07 00:20:38 +01:00
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>
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 <= 83,
|
|
`Expected <= 83 elements in moduleLoadLists, got ${list.length}`);
|