[Bug 18877] [XQ30] try/catch

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18877

--- Comment #12 from Michael Kay <mike@saxonica.com> ---
(In reply to comment #11)
> (In reply to comment #0)
> 
> Actually, 10 div $arg is not evaluated - it's lexically contained, but not
> evaluated. There may be no bug here.
> 
> It might be clearer if the spec said:
> 
> "A try/catch expression catches dynamic errors and type errors raised during
> dynamic evaluation OF expressions that are lexically contained within the
> try clause."

I think that completely misses the point of the bug report. Eventually, at some
point, (10 div $arg) will be evaluated, and an error will occur during dynamic
evaluation, and the try/catch should not catch that error. The proposed text
says that the try/catch will catch the error even though the dynamic evaluation
does not occur during the evaluation of the try/catch expression.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 4 June 2013 17:59:37 UTC