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

Function parseAndEvalCommonjsTypeScript

lib/internal/process/execution.js:400–404  ·  view source on GitHub ↗

* Function used to shortcut when `--input-type=commonjs-typescript` is set * @param {string} name The name of the file * @param {string} source The source code to evaluate * @param {boolean} breakFirstLine Whether to break on the first line * @param {boolean} print If the result should be printe

(name, source, breakFirstLine, print, shouldLoadESM = false)

Source from the content-addressed store, hash-verified

398 * @returns {void}
399 */
400function parseAndEvalCommonjsTypeScript(name, source, breakFirstLine, print, shouldLoadESM = false) {
401 // We know its a TypeScript module, we can safely emit the experimental warning.
402 const strippedSource = stripTypeScriptModuleTypes(source, kEvalTag);
403 evalScript(name, strippedSource, breakFirstLine, print, shouldLoadESM);
404}
405
406/**
407 *

Callers

nothing calls this directly

Calls 2

evalScriptFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…