Function: validateExpression()
validateExpression(
expr,knownVariables?):void
Defined in: javascript/src/expr.ts:569
Validate that an expression string is safe and syntactically valid.
Parameters
expr
string
The expression source.
knownVariables?
Iterable<string, any, any>
Optional set of metric variable names allowed in the
expression. When provided (config-load passes the metric set from
PricingEngine.buildVariables), any identifier not in this set and not an
allowed function is rejected (M5) — typos fail at load, not at runtime.
Returns
void