Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

! hushes IEFE auto-return with named function literal #185

Closed
qqueue opened this issue Oct 31, 2012 · 1 comment
Closed

! hushes IEFE auto-return with named function literal #185

qqueue opened this issue Oct 31, 2012 · 1 comment
Labels

Comments

@qqueue
Copy link

qqueue commented Oct 31, 2012

stuff = !function thing arg
  wow
var stuff;
stuff = (function(){
  function thing(arg){
    wow;
  }
}());

compare to:

stuff = function thing arg
  wow
var stuff;
stuff = (function(){
  function thing(arg){
    return wow;
  }
  return thing;
}());
@satyr
Copy link
Owner

satyr commented Oct 31, 2012

Nice catch. Fixing.

@satyr satyr closed this as completed in 7987103 Oct 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants