Function: evaluate()
function evaluate(code, context): any;
Defined in: packages/kata-core/src/runtime/evaluator.ts:43
Evaluates code string with a restricted context. Uses new Function (not eval) for security. Blocked globals are shadowed as undefined.
Parameters
code
string
The code string to evaluate
context
Record<string, any>
The context object providing variables to the code
Returns
any
The result of evaluation, or null if an error occurred