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

Function embedderRunEntryPoint

lib/internal/main/embedding.js:123–134  ·  view source on GitHub ↗
(content, format, filename)

Source from the content-addressed store, hash-verified

121}
122
123function embedderRunEntryPoint(content, format, filename) {
124 format ||= moduleFormats.kCommonJS;
125 filename ||= process.execPath;
126
127 if (format === moduleFormats.kCommonJS) {
128 return embedderRunCjs(content, filename);
129 } else if (format === moduleFormats.kModule) {
130 return embedderRunESM(content, filename);
131 }
132 assert.fail(`Unknown format: ${format}`);
133
134}
135
136return [process, embedderRequire, embedderRunEntryPoint];

Callers

nothing calls this directly

Calls 3

embedderRunCjsFunction · 0.85
embedderRunESMFunction · 0.85
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…