blob: 0fa324ed567c3376e047283b5f83ed442cedfbc1 [file] [log] [blame]
description(
"Tests that a convert_this optimized for the case where this is an object behaves correctly when you then pass null."
);
function foo() {
return this.x;
}
x = 42;
silentTestPass = true;
noInline(foo);
for (var i = 0; i < 200; i = dfgIncrement({f:foo, i:i + 1, n:100})) {
var me;
if (i < 150)
me = this;
else
me = null;
shouldBe("foo.call(me)", "42");
}