2 "Tests that we do ToString conversions correctly when String.prototype.valueOf is initially fine but then gets clobbered."
6 for (var i
= 0; i
< 100; ++i
)
11 var expected
= "\"hello\"";
12 for (var i
= 0; i
< 150; ++i
) {
14 String
.prototype.valueOf = function() { return 42; }
17 shouldBe("\"\" + foo(\"hello\")", expected
);