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

Function setGlobalString

packages/insomnia/src/scripting/quickjs-script-engine.ts:409–412  ·  view source on GitHub ↗
(vm: QuickJSContext, name: string, value: string)

Source from the content-addressed store, hash-verified

407};
408
409const setGlobalString = (vm: QuickJSContext, name: string, value: string): void => {
410 const handle = vm.newString(value);
411 setGlobal(vm, name, handle);
412};
413
414const evalOrThrow = (vm: QuickJSContext, code: string, filename: string): void => {
415 const result = vm.evalCode(code, filename);

Callers 1

runScriptInQuickJsFunction · 0.70

Calls 1

setGlobalFunction · 0.70

Tested by

no test coverage detected