This project has moved and is read-only. For the latest updates, please go here.

__defineGetter__, __defineSetter__

Sep 9, 2011 at 3:51 PM

Is it planned, that in future '__defineGetter__' and '__defineSetter__' are supported?

I need to hide the internal implementation of properties (not only to verify the correctness of values). Therefore getter and setters are necessary.

In case of setting/getting a property-value, I have to callback a host-function (declared with engine.SetGlobalFunction), which sets/retrieves the necessary value.

Sep 9, 2011 at 10:35 PM

I have no plans to support __defineGetter__ and __defineSetter because Jurassic already supports ES5 getters/setters which are more flexible and standards compliant to boot.