aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-31 05:24:29 +0300
committermax99x <max99x@gmail.com>2011-07-31 05:24:29 +0300
commit17f137b38edfcf5b1ffecc6f99ffae115b08240c (patch)
treea0cf6d942b7f60298892525c2aecd5db5b7fe581
parentcd7fea411be8151351ea24c562bf906d3fcd3821 (diff)
Reverted minor mismerged preamble.js change.
-rw-r--r--src/preamble.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 7d1b725a..fe6fc7ae 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -549,13 +549,8 @@ function String_copy(ptr, addZero) {
// Tools
-function jrint(label, obj) { // XXX manual debugging
- if (!obj) {
- obj = label;
- label = '';
- } else
- label = label + ' : ';
- print(label + JSON.stringify(obj));
+if (typeof print === 'undefined') {
+ print = console.log; // we are on the web
}
// This processes a JS string into a C-line array of numbers, 0-terminated.