MCPcopy Index your code
hub / github.com/CoderLine/alphaTab / evalValue

Function evalValue

packages/vite/src/bridge/utils.ts:10–16  ·  view source on GitHub ↗
(rawValue: string)

Source from the content-addressed store, hash-verified

8 * @internal
9 */
10export function evalValue<T = unknown>(rawValue: string): T {
11 const fn = new Function(`
12 var console, exports, global, module, process, require
13 return (\n${rawValue}\n)
14 `);
15 return fn();
16}
17
18// https://github.com/vitejs/vite/blob/b7ddfae5f852c2948fab03e94751ce56f5f31ce0/packages/vite/src/shared/utils.ts#L31-L34
19const postfixRE = /[?#].*$/;

Callers 1

getWorkerTypeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected