Sign in
webkit
/
WebKit
/
d3fdb4cf562f20044404c4eecc48b193fcc4521c
/
.
/
LayoutTests
/
js
/
script-tests
/
sort-no-jit-code-crash.js
blob: 9ecc77abfef4e6d5e207d1641a200c300e0823e7 [
file
] [
log
] [
blame
]
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
);