gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] gnash/testsuite/actionscript.all Object.as


From: Sandro Santilli
Subject: Re: [Gnash-commit] gnash/testsuite/actionscript.all Object.as
Date: Tue, 8 Apr 2008 09:08:53 +0200

On Tue, Apr 08, 2008 at 09:48:53AM +0800, zou lunkai wrote:
> > +simple_test_getter = function() { return this.test; };      
> > <-------------[0]
> 
> > +// test setter visibility of value (multiplies * 2)
> > +timetwo_test_setter = function(v) {
> > +       // note("timetwo_test_setter sees this.test as "+this.test);
> > +       this.test *= 2;                                                   
> > <--------------[1]
> > +};
> > +o = {};
> > +o.addProperty("test", simple_test_getter, timetwo_test_setter);
> > +o.test = 2;                                                              
> > <--------------[2]
> 
> [2] will trigger [1] , then [1] will trigger [0], then [0] will
> trigger itself again and again in swf7 and above untill reaching a
> limitation. (I already confirmed here)
> 
> Did you make this test intentionally?  In swf6, the result seems
> different.  Tell me if any thing you want to make sure related to this
> test, I'll follow up.

In swf6 there's no recursion, ever. 
The 'cache' value is returned on first nested access.
Cache value is also returned in swf7... just after the recursion limit
was hit.

--strk;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]