MCPcopy Index your code
hub / github.com/nodejs/node / 'Program:exit'

Function 'Program:exit'

tools/eslint-rules/require-common-first.js:48–60  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

46
47 const rules = {
48 'Program:exit'(node) {
49 // The common module should be loaded in the first place.
50 const notLoadedFirst = foundModules.indexOf(requiredModule) !== 0;
51 if (notLoadedFirst) {
52 context.report({
53 node: node.body[0] ?? node,
54 message:
55 'Mandatory module "{{moduleName}}" must be loaded ' +
56 'before any other modules.',
57 data: { moduleName: requiredModule },
58 });
59 }
60 },
61 };
62
63 if (isESM) {

Callers

nothing calls this directly

Calls 2

indexOfMethod · 0.45
reportMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…