1 2 3 4 5 6 7
var obj = {s: ""}; var name = "s"; for (var i = 0; i <= 13; i++) if (i > 8) obj[name]--; // first recording changes obj.s from string to number assertEq(obj.s, -5);