Permalink
Browse files

Add support for CoffeeScript >=1.7.0

See details in issue #283
  • Loading branch information...
1 parent 272b85b commit 885a38bc7bf92bf39dca2080423e916123af524b @nathancarter nathancarter committed Feb 1, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/jasmine-node/cli.js
@@ -64,7 +64,11 @@ while(args.length) {
isVerbose = true;
break;
case '--coffee':
- require('coffee-script');
+ try {
+ require('coffee-script/register'); // support CoffeeScript >=1.7.0
+ } catch ( e ) {
+ require('coffee-script'); // support CoffeeScript <=1.6.3
+ }
extensions = "js|coffee|litcoffee";
break;
case '-m':

0 comments on commit 885a38b

Please sign in to comment.