After checkout dec800968eb618c1f8632df7be49783fc82078d2 I got in the JavaScript console of Firefox the warning
unreachable code after return statement
The debugger points the following code part:
function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type;}
In pretty format this is
function createInputPseudo(type) { return function (elem) { var name = elem.nodeName.toLowerCase(); return name === 'input' && elem.type === type; }; }
The source of this code is resources/lib/jquery/jquery.js with the code:
/** * Returns a function to use in pseudos for input types * @param {String} type */ function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; }
In the minified JavaScript code the line with the return at the end has 998 characters. Obviously the JavaScript minifier inserts here a newline as whitespace between the return and the name to get a line with less than 1000 characters. Firefox interprets the newline as missing semicolon and make a return; without return value. The return value get ignored and causes the warning.
I don't know why the JavaScript minifier do this with jquery.js. I can not reproduce the behavior with other files.
Diffs used for debugging this task: