summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxant <xant@xant.net>2013-09-26 18:03:17 (GMT)
committer xant <xant@xant.net>2013-09-26 18:03:17 (GMT)
commit15d62bcebb0ad11e22dc05a75dd3da95c03068db (patch)
tree82e5493d47018c53bab2390dbde2f8697913c833
parentcd001f7ea0eca1cdf8709f3950336badc1228fe8 (diff)
minor cleanings
-rw-r--r--jsapi/JMX.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/jsapi/JMX.js b/jsapi/JMX.js
index 69a0879..5b7a919 100644
--- a/jsapi/JMX.js
+++ b/jsapi/JMX.js
@@ -12,17 +12,21 @@
if (process.argv[0] == 'jmx-cli') {
global.print = function(str) {
+ var ret = false;
if (typeof(str) == 'function')
- process.stdout.write(str.toString());
+ ret = process.stdout.write(str.toString());
else
- process.stdout.write(str);
+ ret = process.stdout.write(str);
+ return ret;
}
global.echo = function(str) {
+ var ret = false;
if (typeof(str) == 'function')
- process.stdout.write(str.toString() + "\n");
+ ret = process.stdout.write(str.toString() + "\n");
else
- process.stdout.write(str + "\n");
+ ret = process.stdout.write(str + "\n");
+ return ret;
}
}