jashkenas/coffee-script — Issue #2069: Nicer parser error for accidental silliness
Author: gschlabitz
Created: 2012-01-25 21:32:03+00:00
State: open

I made a booboo today that resulted in the "Cannot call method 'push' of undefined" error. It took me a while to find this morsel of silliness:

class SillyString extends Silliness
@IsSilly: =>
true

I'm using 1.2.0, but it also can be replicated using the ["Try Coffeescript"](http://coffeescript.org/#try:%0Aclass%20SillyString%20extends%20Silliness%0A%20%20%20%20%40IsSilly%3A%20%3D%3E%0A%20%20%20%20%20%20%20%20true%0A) feature on the official site. I'm hoping for a more informative parsing error.