> Hmm, I haven't tested this from the C++ API, but with the V8 shell
> doing this:
> var o={};
> o.__proto__.__defineSetter("x",function(v) { print("New x value:
> "+v); });
> o.x=10;
> will actually print "New x value: 10".
>
> Seems to me that setters defined on the object proto are also being
> called... Weird behaviour though, not sure it should work like that.

That's the intended behavior.  We have to do it that way to be
compatible with other browsers.

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to