[Webkit-unassigned] [Bug 42639] Moves various exception code offsets to a central place.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 10 11:34:53 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42639


Adam Barth <abarth at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #62085|review?                     |review-
               Flag|                            |




--- Comment #8 from Adam Barth <abarth at webkit.org>  2010-10-10 11:34:53 PST ---
(From update of attachment 62085)
View in context: https://bugs.webkit.org/attachment.cgi?id=62085&action=review

I'm not sure why we want to make this change.  I like the idea of making ExceptionCode into a struct that has an int member.  That would seem to make it much easier to use the C++ type system to help us with correctness.

> WebCore/dom/ExceptionOffset.h:38
> +        EVENT_EXCEPTION_OFFSET = 100,
> +        EVENT_EXCEPTION_MAX = 199,
> +        RANGE_EXCEPTION_OFFSET = 200,
> +        RANGE_EXCEPTION_MAX = 299,
> +        XML_HTTP_REQUEST_EXCEPTION_OFFSET = 500,
> +        XML_HTTP_REQUEST_EXCEPTION_MAX = 699,

I'm not sure these are named correctly.  Do we use ALL_CAPS names for similar things?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list