[Bug 18877] [XQ30] try/catch

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

--- Comment #13 from Jonathan Robie <jonathan.robie@gmail.com> ---
(In reply to comment #12)

> I think that completely misses the point of the bug report.

Possibly, but I think the bug report may be based on a misunderstanding. Let's
talk this through.

> 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. 

Agreed.

> 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.

I don't think it does. Let's take it one step at a time.

local:func() returns this function:

    function($arg)
    { 
        10 div $arg
    }

local:func()(0) calls the above function with $arg := 0.  There is no try/catch
in the function, so no try/catch is available to catch the error.  By the time
(10 div $arg) is evaluated, the try/catch is irrelevant.

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

Received on Tuesday, 4 June 2013 19:28:46 UTC