[webkit-dev] JSObjectSetPropertyCallback not always called ?

Geoffrey Garen ggaren at apple.com
Fri May 20 16:03:49 PDT 2011


A JSObjectSetPropertyCallback should be called every time.

Geoff

On May 20, 2011, at 4:01 PM, Martijn Scheffer wrote:

> Hi,
> 
> I wrote a simple loop in javascript:
> 
> for(var index = 0; index < 1000; index++) {
>    if(myobject.color == 'red') {
>        myobject.color = 'blue'
>    } else {
>        myobject.color = 'red'
>    }
> }
> 
> after 4 or 5 iterations i noticed that my JSObjectSetPropertyCallback
> is not called anymore, but the JSObjectGetPropertyCallback still is.
> 
> is this the result of some kind of optimization ?
> or am i just too tired ? :)
> 
> i really need my setters and getters to be called every time.
> 
> Martin
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



More information about the webkit-dev mailing list