File:  [parser3project] / parser3 / tests / 453.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Fri Sep 25 13:04:38 2026 UTC (4 weeks ago) by moko
Branches: MAIN
CVS tags: HEAD
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 handled nested error must not overwrite the original trace (bug #1082)
@main[]
$report[^hash::create[]]
^try{^outer[]}{
	$report.first[$exception.source]
	^clear_stack[]
}

@outer[]
^missing_outer[]

@clear_stack[]
^try{^inner[]}{
	$report.inner[$exception.source]
	$exception.handled(true)
}

@inner[]
^missing_inner[]

@unhandled_exception[exception;stack]
$exception.handled(true)
$report.last[$exception.source]
$report.line($exception.lineno)
$report.stack[^stack.menu{$stack.name}[,]]
^json:string[$report]

E-mail: