-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Lexer: Within inline if
block, a throw
that takes implicit object will split the object into multiple objects
#3199
Labels
Comments
Duplicate of #1263. The issue is the object without braces as part of a statement. That would be nice to fix, if someone feels like submitting a PR; but the workaround is to just add braces, or define the object into a variable before |
One more try: maybe a duplicate of #2998. |
GeoffreyBooth
changed the title
Throw exception syntax
Lexer: Within inline May 6, 2017
if
block, a throw
that takes implicit object will split the object into multiple objects
helixbass
added a commit
to helixbass/copheescript
that referenced
this issue
Jul 3, 2017
helixbass
added a commit
to helixbass/copheescript
that referenced
this issue
Jul 5, 2017
GeoffreyBooth
pushed a commit
that referenced
this issue
Jul 9, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I apologise if this has already been reported, I did search the issues but there are lots related to "throw". Also, this may not be an issue, but I wanted to double check anyway.
When throwing exceptions the following syntax does not compile correctly:
The above coffeescript compiles to the following:
In order for this to compile we must use one of the following variations:
or
or
Is this intended? Or are we missing out on a nicer syntax for throwing exceptions?
Thanks!
The text was updated successfully, but these errors were encountered: