Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
stress
/
sloppy-mode-array-put-should-not-throw.js
blob: 1546ebcb568bc42a8f00618201881d1ad16d754c [
file
] [
edit
]
if
(
typeof
console
!=
"undefined"
)
print
=
console
.
log
;
const
array
=
[
0
,
0
];
array
.
__proto__
=
{
get
x
()
{
}
}
function
opt
()
{
for
(
const
key in array
)
array
[
key
]
=
1
;
}
function
main
()
{
for
(
let i
=
0
;
i
<
testLoopCount
;
i
++)
opt
();
}
main
();