function foo(a) {
for (var i = 0; i < 100; ++i)
a = new String(a);
return a;
}
var result;
for (var i = 0; i < 10000; ++i)
result = foo("hello");
if (result != "hello")
throw new "Error: bad result: " + result;
function foo(a) {
for (var i = 0; i < 100; ++i)
a = new String(a);
return a;
}
var result;
for (var i = 0; i < 10000; ++i)
result = foo("hello");
if (result != "hello")
throw new "Error: bad result: " + result;