haikuwebkit/LayoutTests/js/script-tests/dfg-new-array-buffer-while-...

11 lines
313 B
JavaScript

description("Tests that DFG NewArrayBuffer works when having a bad time.");
Array.prototype.__defineSetter__("100", function() { debug("Ouch!"); });
function foo() { return ["foo", 42, 23.5]; }
dfgShouldBe(foo, "foo()[0]", "\"foo\"");
dfgShouldBe(foo, "foo()[1]", "42");
dfgShouldBe(foo, "foo()[2]", "23.5");