Firefox console does not warn about undefined variables

I’m using 50.0a2 Developer Edition( also used Nightly 51…)

The browser console does not give any indication about undefined variables.

I’d need to wrap using:

try{
fun();
}catch(e){
console.log(e);
}

To get to know about undefined variables.

Though I could see a related warning in the Background page console for the reason of why a variable defined in the file could not be loaded( please see the photo)

Can someone tell me the reason?

Undefined variables are not wrong. The only thing that you can not do is use variables declared as let and const before they are declared.

Sorry it is actually an undefined function. There is syntax error in a file so the a function in it will get undefined in another extension file.

I hope to get a warning about undefined function though.