amdclean
amdclean copied to clipboard
AMD destroys multiline return statements
The following code is altered so that undefined is returned, rather than 99:
function shouldReturn99(event) {
return
99;
}
AMDClean adds a semicolon after the return, as follows:
;(function() {
function shouldReturn99(event) {
return;
99;
}
}());
@aleventhal nope, it should return undefined
.
According to my browser, @finom is right
Should be closed. See also: http://ecma-international.org/ecma-262/5.1/#sec-7.9