File:  [parser3project] / parser3 / tests / 457.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sat Sep 26 17:51:49 2026 UTC (5 weeks, 1 day ago) by moko
Branches: MAIN
CVS tags: HEAD
tests for EXECUTE_RECURSION_RESERVE added (related to feature #1298)

# The request gets one recovery reserve (feature #1298)
@main[][i]
$report[ $.caught(0) $.finally(0) $.after(false) ]
^for[i](1;10){
    $calls(0)
    ^try{^recurse[]}{
        $report.caught($report.caught+1)
        $report.calls_$i($calls)
        $exception.handled(true)
    }{
        $report.finally($report.finally+1)
    }
}
$report.after(true)
^json:string[$report; $.indent(true)]

@recurse[]
$calls($calls+1)
^recurse[]

@unhandled_exception[exception;stack]
$exception.handled(true)
$report.final_calls($calls)
$report.error[$exception.comment]
^json:string[$report; $.indent(true)]

E-mail: