Closed GoogleCodeExporter closed 9 years ago
when reading after myself it might not be obvious so the culprit is:
function hi(){
alert("hi");
someFunc("something");
}
which becomes
var b=function(){alert("hi");someFunc("something")}
Original comment by roman.ma...@gmail.com
on 16 Apr 2014 at 4:06
I think this is why we have the JSC_BAD_FUNCTION_DECLARATION warning. I believe
if you rewrite your code such that you don't see that warning, then it should
solve the problem.
Original comment by tbreisac...@google.com
on 17 Apr 2014 at 7:01
I believe this is correct behavior. Notice that the following code throws an
exception on firefox:
if (true) { f(1); function f() {} }
because, according to the spec, it's equivalent to:
if (true) { f(1); var f = function f() {} }
Original comment by Nicholas.J.Santos
on 18 Apr 2014 at 2:06
we should make sure that the BAD_FUNCTION_DECLARATION warning shows up in the
default mode. i think it's only VERBOSE mode currently.
Original comment by Nicholas.J.Santos
on 18 Apr 2014 at 2:08
Issue tracking has been migrated to github. Please make any further comments on
this issue through https://github.com/google/closure-compiler/issues
Original comment by blic...@google.com
on 1 May 2014 at 6:31
Original comment by blic...@google.com
on 1 May 2014 at 6:34
Original issue reported on code.google.com by
roman.ma...@gmail.com
on 16 Apr 2014 at 4:02