Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
stress
/
array-length-array-storage-plain-object.js
blob: 57f1989c2d669a6128a2a5099892e2d23d4e418e [
file
] [
log
] [
blame
] [
edit
]
function
foo
(
o
)
{
return
o
.
length
;
}
noInline
(
foo
);
for
(
var
i
=
0
;
i
<
testLoopCount
;
++
i
)
{
var
a
=
[
1
];
a
.
length
=
99999999
;
a
.
f
=
42
;
foo
(
a
);
}
var
result
=
foo
({});
if
(
result
!==
void
0
)
throw
"Error: bad result: "
+
result
;