diff options
author | max99x <max99x@gmail.com> | 2011-07-31 05:24:29 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-31 05:24:29 +0300 |
commit | 17f137b38edfcf5b1ffecc6f99ffae115b08240c (patch) | |
tree | a0cf6d942b7f60298892525c2aecd5db5b7fe581 | |
parent | cd7fea411be8151351ea24c562bf906d3fcd3821 (diff) |
Reverted minor mismerged preamble.js change.
-rw-r--r-- | src/preamble.js | 9 |
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. |