Permalink
Browse files

Merge branch 'feature/node-master-compat' into develop

  • Loading branch information...
2 parents 6e3b7ab + 0be5991 commit d1329be4a3067ffc84e6c284c440e23266aed7c0 @foobarfighter committed Jul 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/adapters/node.js
View
2 src/adapters/node.js
@@ -26,7 +26,7 @@ foounit.generateSuite = require('./node/cli').generateSuite;
var adapter = (function (){
var sys = require('sys')
, fs = require('fs')
- , runInThisContext = process.binding('evals').Script.runInThisContext;
+ , runInThisContext = (process.binding('evals').Script || require('vm').Script).runInThisContext;
// Private variables
var self = {}, _specdir;

0 comments on commit d1329be

Please sign in to comment.