[Webkit-unassigned] [Bug 21142] Inspector needs a way to enumerate properties without side effects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 27 16:06:47 PDT 2008


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





------- Comment #1 from sam at webkit.org  2008-09-27 16:06 PDT -------
Enumerating properties should be side effect free.  The issue is that once you
have completed a property which is a getter, trying to enumerate it causes a
get, which can cause side effects.  While it is possible to solve this for
vanilla JavaScript objects by checking to see if the property is a getter and
not doing a get, I don't think it is possible to solve this for host objects,
since any get can potentially have side effects.  ie. calling window.document
calls a c++ function which can do whatever it wants and we have no way of
knowing that.  I don't think the host object issue is really that relevant.


-- 
Configure bugmail: https://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