blob: db78216d58df6a9538040f1f742bfe0bd7c735d1 [file] [log] [blame]
utatane.tea@gmail.com57ab8ecd2017-09-05 03:03:03 +00001function shouldBe(actual, expected) {
2 if (actual !== expected)
3 throw new Error('bad value: ' + actual);
4}
5
6function test()
7{
8 var result;
9 for (var i = 0; i < 1e2; ++i) {
10 i.toString(16);
11 i.toString(16);
12 i.toString(16);
13 i.toString(16);
14 result = i.toString(16);
15 }
16 return result;
17}
18noInline(test);
19
20for (var i = 0; i < 1e3; ++i)
21 shouldBe(test(), `63`);