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

Function evalInterceptor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.90

Tested by

no test coverage detected