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