Permalink
Browse files

changes to work with node0.6

  • Loading branch information...
1 parent d338d38 commit 71a9d288d13043b6773d3f3146daf433841568a1 @wtuffaha committed Nov 28, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 config.js
  2. +1 −1 stats.js
View
@@ -1,5 +1,5 @@
var fs = require('fs')
- , sys = require('sys')
+ , sys = require('util')
var Configurator = function (file) {
@@ -14,7 +14,7 @@ var Configurator = function (file) {
if (err) { throw err; }
old_config = self.config;
- self.config = process.compile('config = ' + data, file);
+ self.config = require('vm').runInThisContext('config = ' + data, file);
self.emit('configChanged', self.config);
});
};
View
@@ -1,5 +1,5 @@
var dgram = require('dgram')
- , sys = require('sys')
+ , sys = require('util')
, net = require('net')
, config = require('./config')

0 comments on commit 71a9d28

Please sign in to comment.