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

Regression: 1.5 to 1.6.1+ for func 'param'\n\t'key': 'value' style calls #3364

Closed
jonasfj opened this issue Feb 9, 2014 · 2 comments
Closed

Comments

@jonasfj
Copy link

jonasfj commented Feb 9, 2014

With 1.5.0 it was possible to write:

test 'param'
    'key': 'value'

and get

test('param')({
    'key': 'value'
});

With coffeescript 1.6.1+ I need to add a comma:

test 'param',
    'key': 'value'

Have I been exploiting a bug :) or this a regression...
This comment leads me to believe that this is regression.

Please advice, so I can either fix my code-base or postpone coffee-script upgrade.

@michaelficarra
Copy link
Collaborator

No, this was removed intentionally. Anybody care to search through the issues?

@jonasfj
Copy link
Author

jonasfj commented Feb 9, 2014

Wow, thanks for the quick reply... I was unable find it the issues and did see it listed in the version summary on coffeescript.org. I guess it might be a good idea to document changes that breaks backwards compatibility (even it's just corner cases).

Anyways, thanks for quick reply.

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

No branches or pull requests

3 participants