summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug916752.js
blob: 13b7af5f69ee1d8f1342b934694a2b6739a80e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function test() { return "x,y,z"; };
function testClear() {
  test().split(',');
}
loadFile("1");
loadFile("testClear();");
loadFile("2");
loadFile("gc();");
loadFile("testClear();");
loadFile("new test(0);");
function loadFile(lfVarx) {
        if (lfVarx.substr(-3) != ".js" && lfVarx.length != 1) {
            switch (lfRunTypeId) {
                case 2: new Function(lfVarx)(); break;
                default: evaluate(lfVarx); break;
            }
        } else if (!isNaN(lfVarx)) {
            lfRunTypeId = parseInt(lfVarx);
    }
}