Sign in
webkit
/
WebKit
/
7bae4ab9650adb969465a4f252e480c473ea586b
/
.
/
JSTests
/
stress
/
sort-should-not-look-up-prototype-properties.js
blob: 890e00299694e081d4d4f28ed71e1c0671515c00 [
file
] [
log
] [
blame
]
// This should not crash.
function
assert
(
b
)
{
if
(!
b
)
throw
new
Error
;
}
x
=
Array
.
prototype
;
for
(
let i
=
0
;
i
<
100
;
i
++)
{
x
[
50
]
=
1
;
x
.
sort
();
if
(
i
<=
50
)
assert
(
x
[
i
]
===
1
);
}