[webkit-dev] How to use ASSERT_NO_EXCEPTION

Antti Koivisto koivisto at iki.fi
Thu Dec 15 11:23:30 PST 2011


On Thu, Dec 15, 2011 at 8:36 AM, Darin Adler <darin at apple.com> wrote:

>    ExceptionCode ec;
>    appendChild(newChild, ec);
>    ASSERT(!ec);
>

Often code like this indicates misuse of DOM API functions for internal
purposes. This is inefficient (due to exception related checking and other
spec mandated behaviors) and architecturally bad (ties our internal data
structures to DOM way of presenting them, see stylesheet related classes).

I'm not sure it is a good idea to make these cases less visible.


   antti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20111215/2c24e466/attachment.html>


More information about the webkit-dev mailing list