blob: b1293bd40caa70bc3df5b7c0222517b7f468c863 [file] [log] [blame]
var createImpureGetter = $vm.createImpureGetter;
var setImpureGetterDelegate = $vm.setImpureGetterDelegate;
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!");