Input Code
Expected Behavior
I would expect it to compile to
It's common object shorthand notation, after all.
Current Behavior
It has been discussed in #4600 (comment), is not supported. You will need braces around the object body, if I am not mistaken.
Possible Solution
This should be addressed in the documentation. After thorough reading I had assumed there was nothing further to consider.
- CoffeeScript version: Liveedit on coffeescript.org.
Edit:
Sorry Geoffrey, I must have missed the notification... this really should have been a PR after all