blob: b91e9eea0107092fc618666dc7005e2c0851b81c [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test(target)
{
return Object(target);
}
noInline(test);
(function () {
for (var i = 0; i < 1e4; ++i) {
var object = test(true);
shouldBe(object instanceof Boolean, true);
shouldBe(object.valueOf(), true);
}
}());