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