Sign in
webkit
/
WebKit
/
939e9d9dca352ef0e519c767220f928dea5a0c13
/
.
/
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
);