js/src/jit-test/tests/gc/bug-889682-2.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/gc/bug-889682-2.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +// |jit-test| error:TypeError
     1.5 +(function(){})
     1.6 +gc();
     1.7 +var recursiveFunctions = [{
     1.8 +    text: "(function(){if(a){}g()})"
     1.9 +}];
    1.10 +(function testAllRecursiveFunctions() {
    1.11 +    for (var i = 0; i < recursiveFunctions.length; ++i) {
    1.12 +        var a = recursiveFunctions[i];
    1.13 +        eval(a.text.replace(/@/g, ""))
    1.14 +    }
    1.15 +})();
    1.16 +gcslice(2868);
    1.17 +Function("v={c:[{x:[[]],N:{x:[{}[d]]}}]}=minorgc(true)")()

mercurial