blob: 98731bae6aed8a421493baf19f72b505ce945281 [file] [log] [blame]
description("Tests that DFG NewArray works when having a bad time.");
Array.prototype.__defineSetter__("100", function() { debug("Ouch!"); });
function foo() { return ["foo", 42, {f:23}]; }
dfgShouldBe(foo, "foo()[0]", "\"foo\"");
dfgShouldBe(foo, "foo()[1]", "42");
dfgShouldBe(foo, "foo()[2].f", "23");