Sign in
webkit
/
WebKit
/
b0d7f9b249dd6483d6c7bc4f13c440c0842b7127
/
.
/
JSTests
/
stress
/
HasIndexedProperty-does-gc.js
blob: b11629f5d8c4e890190ff642189a074ba8caf075 [
file
] [
log
] [
blame
]
// This test should not crash.
function
foo
(
a
)
{
return
0
in a
;
}
for
(
let i
=
0
;
i
<
100000
;
i
++)
{
const
str
=
new
String
(
'asdf'
);
str
[
42
]
=
'x'
;
// Give it ArrayStorage
foo
(
str
);
}