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