Skip to content

Instantly share code, notes, and snippets.

@lauripiispanen
Created April 19, 2013 12:50
Show Gist options
  • Save lauripiispanen/5420122 to your computer and use it in GitHub Desktop.
Save lauripiispanen/5420122 to your computer and use it in GitHub Desktop.
(function() {
return
"a"
})()
>>> undefined
(function() {
return "a"
})()
>>> "a"
@lauripiispanen
Copy link
Author

http://bclary.com/2004/11/07/#a-7.9.1

"When a continue, break, return, or throw token is encountered and a LineTerminator is encountered before the next token, a semicolon is automatically inserted after the continue, break, return, or throw token."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment