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