[Webkit-unassigned] [Bug 13129] Democracy Player dies in NSException from WebScriptObject on startup

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 31 18:26:08 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=13129





------- Comment #10 from bdash at webkit.org  2007-03-31 18:26 PDT -------
Tim, "count" is being called implicitly by PyObjC when Democracy does "if
myDOMNode:".  The fact it throws an exception makes this a very visible
problem.  If "count" were to *not* throw an exception what would it return when
the "length" property is not present?  0 or nil would be the two obvious
values, but both of these would make "myDOMNode" appear as boolean false to
Python and would break Democracy in a more subtle manner.

It's not clear to me how "count" helps for bindings support.  If it is required
we might want to wrap collection-like JS objects in a subclass of
WebScriptObject which implements count/objectAtIndex: rather than exposing them
on *all* JS objects?


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



More information about the webkit-unassigned mailing list