jakejs / jake

JavaScript build tool, similar to Make or Rake. Built to work with Node.js.
http://jakejs.com
Apache License 2.0
1.97k stars 190 forks source link

Avoid issues with older versions of CoffeeScript where compiler registra... #240

Closed euskode closed 10 years ago

euskode commented 10 years ago

...tion is not required

euskode commented 10 years ago

Totally forgot backwards compatibility, my bad!

mde commented 10 years ago

A better approach here might be to test to see if register is a function. (I'm assuming this doesn't exist in older versions.) In theory you might end up swallowing other errors with the register call with a try/catch.

euskode commented 10 years ago

Agreed. There you go!

mde commented 10 years ago

Excellent, thanks!