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