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

Function evalCode

src/repl.ts:204–214  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

202 }
203
204 function evalCode(code: string) {
205 const result = appendCompileAndEvalInput({
206 service: service!,
207 state,
208 input: code,
209 context,
210 overrideIsCompletion: false,
211 });
212 assert(result.containsTopLevelAwait === false);
213 return result.value;
214 }
215
216 function evalCodeInternal(options: {
217 code: string;

Callers 1

startInternalFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…