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