Source code

Revision control

Copy as Markdown

Other Tools

function testObjectToString() {
var o = {toString: () => "foo"};
var s = "";
for (var i = 0; i < 10; i++)
s += o;
return s;
}
assertEq(testObjectToString(), "foofoofoofoofoofoofoofoofoofoo");