summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug525028.js
blob: 90200b6bc0cd6e1a5bb44c856e41502412156ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// don't crash

function f() {
    var _L1 = arguments;
    for (var i = 0; i < _L1.length; i++) {
        if (typeof _L1[i] == "string")
            _L1[i] = new Object();
    }
    print(arguments[2]);
}

f(1, 2, "3", 4, 5);
f(1, 2, "3", 4, 5);
f(1, 2, "3", 4, 5);
f(1, 2, "3", 4, 5);