From a0f2b8a0c5da9de9d7f52ea0312b1a6ffc53277c Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 21 Apr 2009 14:38:55 +0200 Subject: [PATCH] remove debug messages from module loading. --- src/main.js | 14 +++++++------- test/test-test.js | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main.js b/src/main.js index e777ab080e..8ea372e895 100644 --- a/src/main.js +++ b/src/main.js @@ -54,7 +54,7 @@ node.path = new function () { this.target = target; this.load = function (base_directory, callback) { - node.debug("sub.load from <" + base_directory + "> " + this.toString()); + //node.debug("sub.load from <" + base_directory + "> " + this.toString()); findScript(base_directory, name, function (filename) { if (filename === null) { stderr.puts("Cannot find a script matching: " + name); @@ -84,7 +84,7 @@ node.path = new function () { var compiled = node.compile(source, filename); if (module.__on_load) { - node.debug("<"+ filename+"> has onload! this is bad"); + //node.debug("<"+ filename+"> has onload! this is bad"); } module.__subs = []; @@ -121,15 +121,15 @@ node.path = new function () { var scaffold = new Scaffold(content, filename, target); - node.debug("after scaffold <" + filename + ">"); + //node.debug("after scaffold <" + filename + ">"); function finish() { - node.debug("finish 1 load <" + filename + ">"); + //node.debug("finish 1 load <" + filename + ">"); if (scaffold.on_load instanceof Function) { - node.debug("foo bar <" + filename + ">"); + //node.debug("foo bar <" + filename + ">"); scaffold.on_load(); } - node.debug("finish 2 load <" + filename + ">"); + //node.debug("finish 2 load <" + filename + ">"); if (callback instanceof Function) callback(); @@ -146,7 +146,7 @@ node.path = new function () { var sub = scaffold.subs[i]; sub.load(node.path.dirname(filename), function () { ncomplete += 1; - node.debug("<" + filename + "> ncomplete = " + ncomplete.toString() + " scaffold.subs.length = " + scaffold.subs.length.toString()); + //node.debug("<" + filename + "> ncomplete = " + ncomplete.toString() + " scaffold.subs.length = " + scaffold.subs.length.toString()); if (ncomplete === scaffold.subs.length) finish(); }); diff --git a/test/test-test.js b/test/test-test.js index e8bd677aa8..0a4404f7f5 100644 --- a/test/test-test.js +++ b/test/test-test.js @@ -2,7 +2,6 @@ include("mjsunit"); var a = require("fixtures/a"); function on_load () { - stderr.puts("hello world"); assertFalse(false, "testing the test program."); assertInstanceof(a.A, Function);