Prototype Get/Set

2006-10-14
2013-04-08
  • Is this project still being worked on?

    I miss support for getters and setters:

    function foo() {}

    foo.prototype = {
        mSomevar: null,

        get somevar() { return this.mSomevar; },
        set somevar(v) { this.mSomevar = v; }
    };