testBug840012.js (429B)
1 // |jit-test| allow-oom; allow-unhandlable-oom; allow-overrecursed 2 3 gcPreserveCode(); 4 evaluate("gcparam(\"maxBytes\", gcparam(\"gcBytes\") + 4*1024);"); 5 evaluate("\ 6 function testDontEnum(F) { \ 7 function test() {\ 8 var upvar = \"\";\ 9 function f() { upvar += \"\"; }\ 10 typeof (new test(\"1\")) != 'function'\ 11 }\ 12 test();\ 13 } \ 14 var list = [];\ 15 for (i in list)\ 16 var F = this[list[i]];\ 17 actual = testDontEnum(F);\ 18 ");