Private Static Readonly DANGEROUS_Patterns that indicate potentially dangerous code
Private Static Readonly SAFE_Safe methods that can be called on objects
Private clonePrivate createEvaluates a boolean expression against a context object
The boolean expression to evaluate
The context object containing variables
Optional enableDiagnostics: boolean = falseWhether to include diagnostic information
The evaluation result
Evaluates multiple expressions and returns all results
Array of expressions to evaluate
The context object
Map of results by name or index
Private isPrivate validate
Safe expression evaluator that prevents arbitrary code execution while supporting common boolean expressions and property access patterns.
Supported operations:
SafeExpressionEvaluator
Example