Sign in
webkit
/
WebKit
/
18eafb7225658eb078fb4b435c7e6f4bc55edf7a
/
.
/
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
;