From 3e8715b85dc0376d20599e97f47450672a658c4c Mon Sep 17 00:00:00 2001 From: "rogerl%netscape.com" Date: Fri, 4 Aug 2000 20:37:42 +0000 Subject: [PATCH] Oops. Left icode output on by default, now off. git-svn-id: svn://10.0.0.236/trunk@75595 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/js2/js2.cpp | 4 +++- mozilla/js2/tests/cpp/js2_shell.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/js/js2/js2.cpp b/mozilla/js/js2/js2.cpp index 287bf454823..f5a729acf63 100644 --- a/mozilla/js/js2/js2.cpp +++ b/mozilla/js/js2/js2.cpp @@ -235,7 +235,9 @@ static void readEvalPrint(FILE *in, World &world) // list of zero or more statements ICodeModule* icm = cx.genCode(parsedStatements, ConsoleName); if (icm) { -stdOut << *icm; +#ifdef SHOW_ICODE + stdOut << *icm; +#endif JSValue result = cx.interpret(icm, JSValues()); stdOut << "result = " << result << "\n"; delete icm; diff --git a/mozilla/js2/tests/cpp/js2_shell.cpp b/mozilla/js2/tests/cpp/js2_shell.cpp index 287bf454823..f5a729acf63 100644 --- a/mozilla/js2/tests/cpp/js2_shell.cpp +++ b/mozilla/js2/tests/cpp/js2_shell.cpp @@ -235,7 +235,9 @@ static void readEvalPrint(FILE *in, World &world) // list of zero or more statements ICodeModule* icm = cx.genCode(parsedStatements, ConsoleName); if (icm) { -stdOut << *icm; +#ifdef SHOW_ICODE + stdOut << *icm; +#endif JSValue result = cx.interpret(icm, JSValues()); stdOut << "result = " << result << "\n"; delete icm;