[Webkit-unassigned] [Bug 39243] Auto-generate Canvas overloads in JSC

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 20 08:38:30 PDT 2010


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





--- Comment #5 from Adam Barth <abarth at webkit.org>  2010-05-20 08:38:30 PST ---
> I think the custom code is not efficient at best and broken otherwise. In most cases, it postpones throwing an invalid arguments exception, silently fails or performs a no op (e.g. drawing a 0x0 rect). I think that just throwing an invalid args exception is better. I could not find anywhere in the specs saying what should happen, so I decided on consistency with the methods that already throw errors.

We're not consistent about how to handle exceptions in these cases.  IMHO, we should do the most JavaScript-like thing, which is throwing the exception as early as possible and re-throwing the same exception.  However, it might make sense to preserve the current behavior of each API, if possible, and then normalize them in the future.

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