js/src/jit-test/tests/basic/nonEmptyStack1.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 function nonEmptyStack1Helper(o, farble) {
     2     var a = [];
     3     var j = 0;
     4     for (var i in o)
     5         a[j++] = i;
     6     return a.join("");
     7 }
     9 function nonEmptyStack1() {
    10     return nonEmptyStack1Helper({a:1,b:2,c:3,d:4,e:5,f:6,g:7,h:8}, "hi");
    11 }
    13 assertEq(nonEmptyStack1(), "abcdefgh");

mercurial