Sign in
webkit
/
WebKit
/
1f5bafe5ae87a22fbc029b76fb26b628be327746
/
.
/
JSTests
/
stress
/
global-lexical-let-no-rhs.js
blob: cd77889207ba6fe938ab5ecd77166ea381561a87 [
file
] [
log
] [
blame
]
function
assert
(
cond
)
{
if
(!
cond
)
throw
new
Error
(
"broke assertion"
);
}
noInline
(
assert
);
let x
;
function
foo
()
{
return
x
;
}
for
(
var
i
=
0
;
i
<
1000
;
i
++)
{
assert
(
x
===
undefined
);
assert
(
foo
()
===
undefined
);
}