test262-automation 24f861721f [javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files.
sourceRevisionAtLastExport: 8bfa53d50 targetRevisionAtLastExport: 8bc4e38a
2018-07-29 23:55:12 -04:00

22 lines
442 B
JavaScript

function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
noInline(shouldBe);
function test(object)
{
return object.return;
}
noInline(test);
var object1 = {};
var object2 = { hello: 42 };
for (var i = 0; i < 10; ++i) {
shouldBe(test(object1), undefined);
}
for (var i = 0; i < 1e6; ++i) {
shouldBe(test(object1), undefined);
shouldBe(test(object2), undefined);
}