Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <ry@tinyclouds.org>2009-08-27 00:11:51 +0400
committerRyan <ry@tinyclouds.org>2009-08-27 00:36:45 +0400
commitad9d683f9fe9eabe2d797bd6f2ffddf02b0ea009 (patch)
treebc451339e6adf98dd7036fdb51fe5514c4e20a3f /benchmark/run.js
parent116f4dea052c9d59f6666345ccde4af5774b1bc2 (diff)
API: rename node.Process to node.ChildProcess
This is to avoid confusion with the global "process" object, especially for the instances of node.Process.
Diffstat (limited to 'benchmark/run.js')
-rw-r--r--benchmark/run.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/run.js b/benchmark/run.js
index 4bb2f5c4dbd..a8a4d1715e7 100644
--- a/benchmark/run.js
+++ b/benchmark/run.js
@@ -8,8 +8,8 @@ var benchmark_dir = node.path.dirname(__filename);
function exec (script, callback) {
var command = ARGV[0] + " " + node.path.join(benchmark_dir, script);
var start = new Date();
- var process = node.createProcess(command);
- process.addListener("exit", function (code) {
+ var child = node.createChildProcess(command);
+ child.addListener("exit", function (code) {
var elapsed = new Date() - start;
callback(elapsed, code);
});