1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// |jit-test| --no-ggc; allow-oom gc(); dbg1 = new Debugger(); root2 = newGlobal(); dbg1.memory.onGarbageCollection = function(){} dbg1.addDebuggee(root2); for (var j = 0; j < 9999; ++j) { try { a } catch (e) {} } gcparam("maxBytes", gcparam("gcBytes") + 8000); function g(i) { if (i == 0) return; var x = ""; function f() {} eval(''); g(i - 1); } g(100);