diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js index 8bfc097244..b83c2c9430 100644 --- a/benchmark/http_simple.js +++ b/benchmark/http_simple.js @@ -3,7 +3,8 @@ path = require("path"); libDir = path.join(path.dirname(__filename), "../lib"); require.paths.unshift(libDir); -process.mixin(require("sys")); +var sys = (require("sys")); +for (var i in sys) global[i] = sys[i]; http = require("http"); fixed = "" diff --git a/benchmark/process_loop.js b/benchmark/process_loop.js index 372a89cf34..0ee61b76a2 100644 --- a/benchmark/process_loop.js +++ b/benchmark/process_loop.js @@ -1,7 +1,8 @@ var path = require("path"); libDir = path.join(path.dirname(__filename), "../lib"); require.paths.unshift(libDir); -process.mixin(require("sys")); +var sys = (require("sys")); +for (var i in sys) global[i] = sys[i]; function next (i) { if (i <= 0) return; diff --git a/benchmark/run.js b/benchmark/run.js index 8466b9760f..60b7752c7a 100644 --- a/benchmark/run.js +++ b/benchmark/run.js @@ -1,7 +1,8 @@ var path = require("path"); libDir = path.join(path.dirname(__filename), "../lib"); require.paths.unshift(libDir); -process.mixin(require("sys")); +var sys = (require("sys")); +for (var i in sys) global[i] = sys[i]; var benchmarks = [ "static_http_server.js" , "timers.js" , "process_loop.js"