1 2 3 4 5 6
function fillHeap() { var x = 1, tmp; for (var i = 0; i < 50000; ++i) tmp <<= x / 3; } RegExp({ toString: fillHeap });