function foo() {
}
if (!foo) {
let x = 10
}
else {
}
Expected: Error on !foo that the condition is always true because foo is defined.
Actual: No error.
Also, any work on this should include the following test:
function foo() {
}
if (!foo) {
}
else {
foo()
}
Expected: Error on
!foothat the condition is always true becausefoois defined.Actual: No error.
Also, any work on this should include the following test: