On Fri, Jun 15, 2007 at 01:21:20PM -0600, Eric Hughes wrote:
> At 12:24 PM 6/15/2007, strk wrote:
> >Exactly. Note that Function.prototype.constructor == Function
...
> For strk:  Since this case is so common, is it possible and feasible to 
> make the constructor reference to the function a weak reference, as an 
> optimization?  If so, might this not be a good, relatively isolated place 
> in the code to deploy and test weak references?

User can actually change Function.prototype.constructor to point to
something else, and removal of that something else should not really
release it.

var o = new Object;
o.hello = function() { trace("hello"); }
Function.prototype.constructor = o;
delete o;
Function.prototype.constructor.helo(); // expect a trace

--strk;


_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to