MCPcopy Index your code
hub / github.com/nodejs/node / main

Function main

benchmark/error/format-list.js:23–44  ·  view source on GitHub ↗
({ n, input, type })

Source from the content-addressed store, hash-verified

21});
22
23function main({ n, input, type }) {
24 const {
25 formatList,
26 } = require('internal/errors');
27
28 const list = input.split(',');
29
30 if (type === 'undefined') {
31 bench.start();
32 for (let i = 0; i < n; ++i) {
33 formatList(list);
34 }
35 bench.end(n);
36 return;
37 }
38
39 bench.start();
40 for (let i = 0; i < n; ++i) {
41 formatList(list, type);
42 }
43 bench.end(n);
44}

Callers

nothing calls this directly

Calls 5

formatListFunction · 0.85
requireFunction · 0.50
splitMethod · 0.45
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…