Sign in
webkit
/
WebKit
/
49c45f529348e27f11122daecbee33e4fa730919
/
.
/
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
);
}