Function: evaluateWithDiagnostic()
function evaluateWithDiagnostic(code, context): object;
Defined in: packages/kata-core/src/runtime/evaluator.ts:85
Evaluates code with structured error return instead of console.warn. Blocked globals are shadowed as undefined.
Parameters
code
string
context
Record<string, any>
Returns
object
error?
optional error?: string;
result
result: any;