Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #284 from nathancarter/patch-1

Add support for CoffeeScript >=1.7.0
  • Loading branch information...
commit dfd6ad4e46d1dc43b85dc3aeeca1600ed1daa976 2 parents 272b85b + 885a38b
@tebriel tebriel authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/jasmine-node/cli.js
View
6 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':
Please sign in to comment.
Something went wrong with that request. Please try again.