Community
Participate
Working Groups
Build Identifier: I20110613-1736 An anonymous function that is not called immediately gets tagged with an error message: Syntax error on token "function", Identifier expected after this token When calling this function directly this error goes away. However, the file containing the function might be loaded and fed to an eval construct, which assigns the function to a variable. So while this is a rather peculiar case, it is not a JS error but should rather raise a warning that this is potentially a no-op. Reproducible: Always Steps to Reproduce: function(x) { return x+42; };