I was creating a form validator for a client and ran into this weird error ONLY in Internet Exploder (Explorer) 7/8....
'return' outside of function, line 1, char 1
Of course, there was no code whasoever on line 1, it was a simple commented statement. And there was nothing wring with it in any way. So I knew it was just a debug miss-direct.
I have been pulling my hair out to understand what could be wrong here...
I have already ruled out the obvious: return statements in a loop, too many return statements in a single function, any returns actually outside of a legitimate function definition.
Has anybody else had any instances when this has happened to you?