blob: 7c16ff53a4c30eb27fcd0834c8a882c37b02a622 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var object = {
toString() { return "Cocoa"; }
};
var charCodeAt = String.prototype.charCodeAt;
function test(object)
{
shouldBe(charCodeAt.call(object, 0), 67);
}
noInline(test);
for (var i = 0; i < 1e5; ++i)
test(object);