Sign in
webkit
/
WebKit
/
7c2d2b06cff0bde1c85f11402729e2b90317522d
/
.
/
JSTests
/
stress
/
flatten-object-zero-unused-inline-properties.js
blob: 6460a94aa6322eefa4d6b8650deb0ccfbe3ab531 [
file
] [
log
] [
blame
]
let o
=
{
foo
:
1
,
bar
:
2
,
baz
:
3
};
for
(
let i
=
0
;
i
<
100
;
++
i
)
{
o
.
a
=
i
o
.
b
=
i
delete
o
.
a
delete
o
.
b
}
if
(
$vm
.
inlineCapacity
(
o
)
<=
3
)
throw
new
Error
(
"There should be inline capacity"
);
delete
o
.
foo
;
$vm
.
flattenDictionaryObject
(
o
);
o
.
foo
=
1
;