summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/strict-osr-shadowed-args.js
blob: 5c193b99f630b82c6d6139f1f09056861d66b853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

"use strict";

function loop(a) {
    a = arguments.length;
    var result = 0;
    for (var i = 0; i < 5000; i++) {
        result += a;
    }
    return result;
}

assertEq(loop(11), 5000);