blob: 38ee65db0fad63ac0dc0677bfce99f527fe82f37 [file] [log] [blame]
description(
"Tests that the DFG's interference analysis knows that a holy PutByVal interferes with a GetArrayLength."
);
function foo(array) {
var x = array.length;
array[1] = 42;
return [x, array.length];
}
for (var i = 0; i < 100; ++i)
shouldBe("foo([75])", "[1,2]");