From c488e5775a57391b9b2a8037f849975c0084d05c Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 8 Mar 2010 15:07:06 -0800 Subject: [PATCH] Remove process.mixin dependencies from benchmark scripts --- benchmark/http_simple.js | 3 ++- benchmark/process_loop.js | 3 ++- benchmark/run.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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"