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