MCPcopy Create free account
hub / github.com/Kong/insomnia / evalInterceptor

Function evalInterceptor

packages/insomnia/src/script-executor.ts:30–34  ·  view source on GitHub ↗
(script: string)

Source from the content-addressed store, hash-verified

28 const executionContext = await initInsomniaObject(context, scriptConsole.log);
29
30 const evalInterceptor = (script: string) => {
31 invariant(script && typeof script === 'string', 'eval is called with invalid or empty value');
32 const result = eval(script);
33 return result;
34 };
35
36 const AsyncFunction = (async () => {}).constructor;
37 const executeScript = AsyncFunction(

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.90

Tested by

no test coverage detected