Coffeescript Compilation Problems

I have a really simple coffescript class:

class Bar foo: -> console.log('bar') 

What when compiling with coffee -c bar.coffee compiles to

 (function() { class(Bar({ foo: function() { return console.log('bar'); } })); }).call(this); 

If that matters, I'm on Windows, and the exact same coffeescript compiles correctly using SassAndCoffee . I tried several different compilers (Node.exe + the latest source of coffescript, Coffee.exe , etc.), but everyone shows the same behavior. Anyone have any thoughts?

+4
source share
1 answer
James, check and see if you have any unusual gaps in the code that confuse the Coffeescript parser. Since Coffeescript is a space-delimited language (usually), an error in your-vs-space tab may be the source of your error.
+2
source

All Articles