blob: bb376def1edaea99169edd0b73829e5e369b2e2c [file] [log] [blame]
var ig = createImpureGetter(null);
ig.x = 42;
var foo = function(o) {
return o.x;
};
noInline(foo);
for (var i = 0; i < 10000; ++i)
foo(ig);
setImpureGetterDelegate(ig, {x:"x"});
if (foo(ig) !== "x")
throw new Error("Incorrect result!");