Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check recursion limit in
VisitorLevelSpecification
(#991)
Check recursion limit in `VisitorLevelSpecification` instead of relying on Java's StackOverflowError. The current implementation may not work, JVM may kill the process when StackOverflowError occurs. ``` default IExpr acceptChecked(IVisitor visitor) { try { return accept(visitor); } catch (StackOverflowError soe) { RecursionLimitExceeded.throwIt(Integer.MAX_VALUE, this); } return F.NIL; } ``` Co-authored-by: Duy Tran <mail@duytran.com>
- Loading branch information