You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
As of 7e831bf, non-anonymous functions are broken in the REPL. I'm not sure when the issue was introduced, I first encountered it when testing the fix for #543.
Looks as though this was introduced in b45698e. Resetting to that causes foobar(); to think its inside a block (the prompt switches to ...), while calling foobar(); causes a ReferenceError to be raised.
I've also updated the Gist linked above to contain sample output. It's the parenthesis which cause the issue here. The parenthesis are pulling the name of the function into another scope which causes issues if you want to reference it again later.
This does add to the wtf-factor for newbies as a lot of developers aren't going to understand the difference between var foo = function() and function foo(), but I'm not sure on the best way to proceed about handling this.
As of 7e831bf, non-anonymous functions are broken in the REPL. I'm not sure when the issue was introduced, I first encountered it when testing the fix for #543.
See this gist for error output.
The text was updated successfully, but these errors were encountered: