summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug840012.js
blob: 20793f7efe282d5c3080ba21176b6c951e470621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| allow-oom; allow-unhandlable-oom; allow-overrecursed

gcPreserveCode();
evaluate("gcparam(\"maxBytes\", gcparam(\"gcBytes\") + 4*1024);");
evaluate("\
function testDontEnum(F) { \
  function test() {\
    var upvar = \"\";\
    function f() { upvar += \"\"; }\
    typeof (new test(\"1\")) != 'function'\
  }\
  test();\
} \
var list = [];\
for (i in list)\
  var F = this[list[i]];\
actual = testDontEnum(F);\
");