Silence warnings when run under Mozilla's JS interpreter #115

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

magcius commented Mar 31, 2012

If JSLint is run under Mozilla's JS interpreter, it will spew out
some warnings like 'function blah does not always return a value'.
Explicitly add some return statements to shut Mozilla up.

@magcius magcius Silence warnings when run under Mozilla's JS interpreter
If JSLint is run under Mozilla's JS interpreter, it will spew out
some warnings like 'function blah does not always return a value'.
Explicitly add some return statements to shut Mozilla up.
30d3540
Owner

No thanks.

magcius commented Mar 31, 2012

Figured not, but I'm curious why -- is there a reason that you don't consider implicit undefined returns an error that JSLint should check for?

Owner

You would not believe how much whining I hear. I only want JSLint to warn about stuff that can matter. I have not seen where default returns is a problem. If you can show me the evidence, I will change my mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment