js/src/jit-test/tests/basic/testBug840012.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 // |jit-test| error:out of memory
     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 ");

mercurial