summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/basic/testBug558446.js
blob: 8560de094796867c39c2ddce2119ac20e03123d0 (plain)
1
2
3
4
5
6
7
8
9
10
function f(a, b) { return a + " " + b; }

for (var i = 0; i < 10; ++i) {
    var s = '';
    var a = {toString: function () { s += 'a'; return 'a'; }};
    var b = {toString: function () { s += 'b'; return 'b'; }};
    f(a, b);
    assertEq(s, 'ab');
}