blob: cf2d523e1c0d77830e5d9b824708399c4bf74b56 [file] [log] [blame]
description("Test to make sure that document.all works properly with the DFG");
var f = function(a, b) {
if (a == null) {
return 0;
}
if (b == null) {
return a;
}
return a + b;
};
for (var i = 1; i < 100; i++) {
shouldBe("f(2, 42)", "44");
}
var test = {};
if (test == document.all) {
shouldBeTrue("false");
} else if (undefined == document.all) {
debug("document.all was undefined");
for (var i = 1; i < 1000; i++) {
shouldBe("f(document.all, 43)", "0");
}
}