utatane.tea@gmail.com | 34e35e8 | 2017-10-18 07:12:53 +0000 | [diff] [blame] | 1 | function shouldBe(actual, expected) { |
2 | if (actual !== expected) | ||||
3 | throw new Error('bad value: ' + actual); | ||||
4 | } | ||||
5 | |||||
6 | function target(value) | ||||
7 | { | ||||
8 | return value.__proto__; | ||||
9 | } | ||||
10 | noInline(target); | ||||
11 | for (var i = 0; i < 1e6; ++i) | ||||
12 | shouldBe(target("Cocoa"), String.prototype) |