1 2 3 4 5 6 7 8 9 10 11 12 13
function f(a) { var x = { g: function () { return this.a; } }; x.g.prototype.a = a; assertEq(x.g.prototype.a, a); return x; } f(1); f(2); f(3);