Permalink
Browse files

Merge branch 'patch-1' of https://github.com/polotek/foounit into fea…

…ture/node-master-compat
  • Loading branch information...
foobarfighter committed Jul 13, 2011
2 parents e03a5b3 + 922f9a5 commit 0be59910981142ede68ad5d1442869a7ce5430c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/adapters/node.js
View
@@ -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 0be5991

Please sign in to comment.