diff --git a/benchmark/http_simple.js b/benchmark/http_simple.js index 8bfc0972446..b83c2c9430a 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 372a89cf349..0ee61b76a2b 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 8466b9760fa..60b7752c7a5 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"