Compiles a function from the given code.
const arg = Symbol();const varA = Symbol();const varB = Symbol();const fn = compileFunction( [arg], [ 'var ', varA, '=123;', 'return ', varA, '+', arg, '+', varB, ], [[varB, 456]],);fn(789); // → 1368
The compiled function.
The list of function arguments.
The body code of the function.
Optional
The list of variable-value pairs that are bound to the output function.
Generated using TypeDoc
Compiles a function from the given code.
Returns
The compiled function.