Maximum expression nesting depth. Far beyond any human-authored notation —
exists so adversarial input like 20,000 nested parens throws a typed
ParseError instead of an uncaught RangeError stack overflow (which
would also break the isRollParserError contract). Bounding parse depth
also bounds AST depth, protecting the recursive AST walkers and evaluator.
Not configurable — unlike the EvaluationOptions caps, this one always
applies, so untrusted notation can never blow the stack.
Maximum expression nesting depth. Far beyond any human-authored notation — exists so adversarial input like 20,000 nested parens throws a typed
ParseErrorinstead of an uncaughtRangeErrorstack overflow (which would also break theisRollParserErrorcontract). Bounding parse depth also bounds AST depth, protecting the recursive AST walkers and evaluator.Not configurable — unlike the EvaluationOptions caps, this one always applies, so untrusted notation can never blow the stack.