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