[Bug 26301] Normalization: Should through instead of returning an Error instance

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

--- Comment #4 from Mark Watson <watsonm@netflix.com> ---
(In reply to Boris Zbarsky from comment #3)
> What exactly would constitute "a proposal"?  I thought comment 0 was pretty
> clear.
> 
> The HTML and DOM specs both have "throw a ...." language that works well
> enough for throwing things.

When I look at https://dom.spec.whatwg.org/#concept-throw it defines "throw a
<string>" in terms of "throw an <object>", but that seems to be all.

I understood comment 1 to be questioning whether 'throw an <object>' was
well-defined when invoked from sub-algorithms.

If it is not well-defined, we need a proposal. The DOM specification seems to
explicitly say 'Rethrow any exceptions' when sub-procedures which might throw
are invoked. Do we need to do something like that.

If you're saying that the propagation of exceptions is well-defined (and Ryan
refers to seeing some text to this effect), then I guess we're good to do a
global change to the DOMO-like 'throw a <string>' language.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 26 September 2014 16:01:05 UTC