summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1296667.js
blob: 4ad8cc70ea9d7febc6a8b1c31a411f555ffca4ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
args = ""
for (i = 0; i < 2000; i++) {
    args += "arg" + i;
    if (i != 1999) args += ",";
}
MyFunc = MyObject = Function(args, "for (var i = 0; i < MyFunc.length; i++ )   break; eval('this.arg'+i +'=arg'+i) ");
new function TestCase() {
    if (inIon())
        return;
    for (var i=0; i<10; i++) {}
    TestCase(eval("var EXP_1 = new MyObject; var EXP_2 = new MyObject; EXP_1 - EXP_2"));
}