blob: e04b63cf8f8b90253f7c514a18f0e4e5df5cb03b [file] [log] [blame]
fpizlo@apple.com6b62eaf2015-08-03 23:13:56 +00001function foo(o) {
2 return o.f;
3}
4
5noInline(foo);
6
7var p = {};
8var o = Object.create(p);
9
10for (var i = 0; i < 10000; ++i) {
11 var result = foo(o);
12 if (result !== void 0)
13 throw "Error: bad result in loop: " + result;
14}
15
16p.f = 42;
17var result = foo(o);
18if (result !== 42)
19 throw "Error: bad result at end: " + result;