blob: 8b5ec5080701f9189239e448a9dc75cc6a5eb798 [file] [log] [blame] [edit]
function shouldBe(actual, expected)
{
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function test2()
{
return 0..toString(2);
}
noInline(test2);
function test4()
{
return 0..toString(4);
}
noInline(test4);
function test8()
{
return 0..toString(8);
}
noInline(test8);
function test16()
{
return 0..toString(16);
}
noInline(test16);
function test32()
{
return 0..toString(32);
}
noInline(test32);
for (var i = 0; i < testLoopCount; ++i) {
shouldBe(test2(), '0');
shouldBe(test4(), '0');
shouldBe(test8(), '0');
shouldBe(test16(), '0');
shouldBe(test32(), '0');
}