Sign in
webkit
/
WebKit
/
36b74c3900290f2598b1d40cf6065a7028fc4a34
/
.
/
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"
;
}
}