haikuwebkit/LayoutTests/js/script-tests/sort-no-jit-code-crash.js

24 lines
230 B
JavaScript

description(
"This test checks that non-numeric sort functions always have JIT code. This test passes if it does not crash."
);
function f()
{
}
[].sort(f);
function g()
{
}
function h(x)
{
x();
}
h(g);
h(g);
h(g);
h(f);