MCPcopy
hub / github.com/TypeStrong/ts-node / evalCodeInternal

Function evalCodeInternal

src/repl.ts:216–229  ·  view source on GitHub ↗
(options: {
    code: string;
    enableTopLevelAwait?: boolean;
    context: Context;
  })

Source from the content-addressed store, hash-verified

214 }
215
216 function evalCodeInternal(options: {
217 code: string;
218 enableTopLevelAwait?: boolean;
219 context: Context;
220 }) {
221 const { code, enableTopLevelAwait, context } = options;
222 return appendCompileAndEvalInput({
223 service: service!,
224 state,
225 input: code,
226 enableTopLevelAwait,
227 context,
228 });
229 }
230
231 function nodeEval(
232 code: string,

Callers 1

nodeEvalFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…