Source code

Revision control

Copy as Markdown

Other Tools

executed = false;
Object.defineProperty(Object.prototype, 'x', { set: function() { executed = true; } });
function A() {
this.x = 12;
}
new A();
assertEq(executed, true);