- From: <bugzilla@jessica.w3.org>
- Date: Fri, 08 Mar 2013 10:51:07 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21221 Bug ID: 21221 Summary: [XQ30] Try/catch and inline functions Classification: Unclassified Product: XPath / XQuery / XSLT Version: Member-only Editors Drafts Hardware: PC OS: All Status: NEW Severity: normal Priority: P2 Component: XQuery 3.0 Assignee: jonathan.robie@gmail.com Reporter: mike@saxonica.com QA Contact: public-qt-comments@w3.org We say that try/catch catches errors "during dynamic evaluation for expressions that are lexically contained within the try clause" Consider let $f := try { function($x){3 div $x} } catch {round#1} return $f(0) I don't think the try/catch is intended to catch the divide-by-zero error, because evaluation of the function body is not caused by the evaluation of the try expression. But the way the rule is phrased in terms of lexical containment suggests otherwise. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Friday, 8 March 2013 10:51:13 UTC