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

Function wrapUserScript

packages/insomnia/src/scripting/quickjs-script-engine.ts:211–215  ·  view source on GitHub ↗
(script: string)

Source from the content-addressed store, hash-verified

209`;
210
211const wrapUserScript = (script: string): string => `
212globalThis.__task = (async () => {
213 ${script}
214})();
215`;
216
217const installConsole = (vm: QuickJSContext, scriptConsole: Console): void => {
218 const consoleHandle = vm.newObject();

Callers 1

runScriptInQuickJsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected