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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/basic/bug747926.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,12 @@
     1.4 +a = 'a';
     1.5 +b = [,];
     1.6 +exhaustiveSliceTest("exhaustive slice test 1", a);
     1.7 +print('---');
     1.8 +exhaustiveSliceTest("exhaustive slice test 2", b);
     1.9 +function exhaustiveSliceTest(testname, a){
    1.10 +  x = 0
    1.11 +  var y = 0;
    1.12 +  countHeap();
    1.13 +    for (y=a.length; y + a.length; y--) { print(y);
    1.14 +					  var b  = a.slice(x,y); }
    1.15 +}

mercurial