You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example I would enjoy being able to do stuff like this:
varPropertyTest=Fiber.extend(function(){return{init: function(stuff){this.stuff=stuff;},getstuffAnd2(){returnthis.stuff+2;},/* set stuffAnd2(val) { this.stuff = val - 2; } */};});varpTest=newPropertyTest(4);console.log(pTest.stuffAnd2);// Should returns 6 but returns 'NaN'.// Instead, the getter is actually called only once, before the initialization,// and the returned value is copied in the instance instead of the getter.pTest.stuffAnd2=8;// Should throw an error because the setter is commented (making stuffAnd2 read-only).// Instead it overwrites stuffAnd2.pTest.stuff=0;console.log(pTest.stuffAnd2);// Still prints 8 while it should be 2 now.
I guess everything is in the title. I would love to have this.
The text was updated successfully, but these errors were encountered: