summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/bug793385.js
blob: deaa5d6c5f026f8815892fc1e657a8e68701af8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| allow-oom; allow-unhandlable-oom; allow-overrecursed

gcparam("maxBytes", gcparam("gcBytes") + 4*1024);
function f() {
    var upvar = "";
    function g() { upvar += ""; }
    var inner4 = f("get"),
	x1,x2,x3,x4,x5,x11,x12,x13,x14,x15,x16,x17,x18,
        otherGlobalSameCompartment = newGlobal("same-compartment");
    eval('');
}
assertEq("aaa".replace(/a/g, f()), "poniesponiesponies");