|
|
tests for bug #1082 added: preserving the original stack trace after handling a nested exception in catch; reporting the correct stack trace for a new exception thrown from finally.
# A replacement error in finally must not inherit the original trace (related to bug #1082)
@main[]
^try{^outer[]}{}{^inner[]}
@outer[]
^missing_outer[]
@inner[]
^missing_inner[]
@unhandled_exception[exception;stack]
$exception.handled(true)
^json:string[$.source[$exception.source] $.line($exception.lineno) $.stack[^stack.menu{$stack.name}[,]]]