js-js/js.js

Getters/Setters

indutny opened this issue · 0 comments

It should be possible to use getters/setters. Main reason for doing it now is:

function A() {}
A.prototype.x = 1;
function B() {}
B.prototype = new A();
new B().x

Which does not work now, because prototype is a regular property and updating it won't change the actual instance map.