Open jwmerrill opened 9 years ago
As read in MDN:
Automatic Semicolon Insertion The return statement is affected by automatic semicolon insertion (ASI). No line terminator is allowed between the return keyword and the expression.
return a + b;
is transformed by ASI into:
return; a + b;
Starting with Gecko 40 the console will warn "unreachable code after return statement".
Link: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/return
Firefox 40 is currently the alpha/aurora/developer edition release. Loading numeric prints many warnings to the console of the form
Here's a jsbin that does nothing but include Numeric—you can open it in firefox 40 and check the console.
http://output.jsbin.com/qubolo
These are unfortunately not very easy to debug, because the line and column numbers appear to refer to generated code rather than the actual source of numeric.