js/src/jit-test/tests/ion/bug916752.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/ion/bug916752.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +function test() { return "x,y,z"; };
     1.5 +function testClear() {
     1.6 +  test().split(',');
     1.7 +}
     1.8 +loadFile("1");
     1.9 +loadFile("testClear();");
    1.10 +loadFile("2");
    1.11 +loadFile("gc();");
    1.12 +loadFile("testClear();");
    1.13 +loadFile("new test(0);");
    1.14 +function loadFile(lfVarx) {
    1.15 +        if (lfVarx.substr(-3) != ".js" && lfVarx.length != 1) {
    1.16 +            switch (lfRunTypeId) {
    1.17 +                case 2: new Function(lfVarx)(); break;
    1.18 +                default: evaluate(lfVarx); break;
    1.19 +            }
    1.20 +        } else if (!isNaN(lfVarx)) {
    1.21 +            lfRunTypeId = parseInt(lfVarx);
    1.22 +    }
    1.23 +}

mercurial