Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-array-pop-value-clearing.js
blob: 7aaec668c226c9f637d55a58394fe3e4734cf00d [
file
] [
log
] [
blame
]
description
(
"Tests that array popping properly cleans up the popped element."
);
function
foo
(
a
)
{
var
x
=
a
.
pop
();
a
[
a
.
length
+
1
]
=
42
;
return
[
x
,
a
.
pop
(),
a
.
pop
()];
}
dfgShouldBe
(
foo
,
"foo([1, 2])"
,
"[2,42,,]"
);