summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1384737.js
blob: 7eb96301665a917da73016bae809927c03f4d619 (plain)
1
2
3
4
5
6
7
8
function f(x) {
    var count = 0;
    for (var i = 0; i < x.length; ++i)
	count++;
    return count;
}
assertEq(f(Error()), 0);
assertEq(f([[]]), 1);