Catch-all proposal based on proxies
mjs at apple.com
Fri Dec 11 08:36:53 PST 2009
On Dec 10, 2009, at 10:06 PM, Mark S. Miller wrote:
> On Thu, Dec 10, 2009 at 9:58 PM, Maciej Stachowiak <mjs at apple.com>
> Object.prototype.hasOwnProperty.call(d, name)
> I'm a little less confident of the latter than the former. However,
> Google Code Search finds a number of hits for
> Object.prototype.hasOwnProperty.call that appear to be operating on
> potentially arbitrary objects and property names. At least some of
> deployed on the Web.
> Google Code Search sees this pattern appearing in a number of
> like code bases that could feasibly be updated):
> Thanks for reminding me to use that tool!
> shows 85 results whereas
> has 263. I will proceed to worry only about hasOwnProperty until
> someone objects.
Note that these are hits found in source repositories, not on the Web.
So I would not put too much stock in the number of hits except as an
likely meaning there are many deployed copies of the code in question
(though unclear if that code path gets hit as the JS libraries are
used in practice).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss