1 2 3 4 5 6 7 8
function f(x) { for (var i = 0; i < 40; ++i) { var stack = getBacktrace({args: true}); (function() { g = x;}); } } f(1);