[Webkit-unassigned] [Bug 57770] Factoring the creation of 'FunctionOnly' callbacks in JavaScriptCore

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 6 04:01:32 PDT 2011


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





--- Comment #17 from Steve Block <steveblock at google.com>  2011-04-06 04:01:32 PST ---
(From update of attachment 88272)
View in context: https://bugs.webkit.org/attachment.cgi?id=88272&action=review

>>> Source/WebCore/bindings/js/CallbackFunction.h:35
>>> +    CallbackAllowFunction = 0,
>> 
>> Should probably be named CallbackAllowFunctionOnly. It’s misleading to have it be named AllowFunction when a function will be allowed even if you don’t pass this value!
> 
> I already thought that, but then it makes no sense to write something valid like CallbackAllowFunctionOnly | CallbackAllowNull. Do you think it should be better to have CallbackAllowFunctionOnly since that value is only used in the exclusive cases and ignore it in other situations?

Yes, I'd thought about this too. I see problems with both names, so don't feel strongly either way.

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