Sign in
webkit
/
WebKit
/
18eafb7225658eb078fb4b435c7e6f4bc55edf7a
/
.
/
JSTests
/
stress
/
array-storage-array-unshift.js
blob: a4ae62c592ae8cb9f96e2a0269fdaade91830da1 [
file
] [
log
] [
blame
]
//@ runDefault
var
x
=
[
2.5
,
1.5
];
x
.
length
=
1000000000
;
x
.
length
=
2
;
Array
.
prototype
.
unshift
.
call
(
x
,
3.5
);
if
(
x
.
toString
()
!=
"3.5,2.5,1.5"
)
throw
"Error: bad result: "
+
describe
(
x
);