MCPcopy Create free account
hub / github.com/angular/angular / executeFunction

Method executeFunction

packages/compiler/src/output/output_jit.ts:99–101  ·  view source on GitHub ↗

* Execute a JIT generated function by calling it. * * This method can be overridden in tests to capture the functions that are generated * by this `JitEvaluator` class. * * @param fn A function to execute. * @param args The arguments to pass to the function being executed. * @re

(fn: Function, args: any[])

Source from the content-addressed store, hash-verified

97 * @returns The return value of the executed function.
98 */
99 executeFunction(fn: Function, args: any[]) {
100 return fn(...args);
101 }
102}
103
104/**

Callers 1

evaluateCodeMethod · 0.95

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected