1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/bug793385.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +// |jit-test| error: out of memory 1.5 +gcparam("maxBytes", gcparam("gcBytes") + 4*1024); 1.6 +function f() { 1.7 + var upvar = ""; 1.8 + function g() { upvar += ""; } 1.9 + var inner4 = f("get"), 1.10 + x1,x2,x3,x4,x5,x11,x12,x13,x14,x15,x16,x17,x18, 1.11 + otherGlobalSameCompartment = newGlobal("same-compartment"); 1.12 + eval(''); 1.13 +} 1.14 +assertEq("aaa".replace(/a/g, f()), "poniesponiesponies");