Sign in
webkit
/
WebKit
/
3171213d84ddc1cb3289622b38ea4b8b7d089653
/
.
/
JSTests
/
stress
/
compare-clobber-untypeduse.js
blob: a1642161c517c2a7ab1ec40f49f71750200fae00 [
file
] [
log
] [
blame
]
// Test that we properly clobber untyped uses. This test should throw or crash.
let val
;
for
(
var
i
=
0
;
i
<
100000
;
i
++)
val
=
42
;
for
(
let i
=
0
;
i
<
1e6
;
i
++)
{
if
(
val
!=
null
&&
val
==
2
)
{
throw
"Val should be 42, but is 2"
;
}
}