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