Skip to content

Commit

Permalink
Restrict indented return arg to object (#4605)
Browse files Browse the repository at this point in the history
* throw multiline implicit object [Fixes #3199]

* only return

* fix from code review

* test error on non-object

* test error on call indented non-object

* unique test names
  • Loading branch information
Julian Rosse authored and GeoffreyBooth committed Jul 9, 2017
1 parent e4bf163 commit 799bc6e
Show file tree
Hide file tree
Showing 7 changed files with 222 additions and 162 deletions.
2 changes: 2 additions & 0 deletions lib/coffee-script/grammar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions lib/coffee-script/lexer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 799bc6e

Please sign in to comment.