1 2 3 4 5 6 7 8 9 10 11 12
function f(depth) { function Obj() { this.prop = null; this.prop = this; } var o = new Obj(); assertEq(o.prop, o); if (depth < 1000) { f(depth + 1); } } f(0);