var-declare
Ast Rule: try block
var-declare
function visit(node){
var isBad = true;
if (isBad) {
throw new Error('All variables must be declared with the let keyword, not the var keyword.');
}
}
test-1.js
Expected test result: no error
The function has a descriptive name.