* 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)
| 398 | * @returns {void} |
| 399 | */ |
| 400 | function 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 | * |
nothing calls this directly
no test coverage detected
searching dependent graphs…