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