diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-09 18:57:58 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-09 18:57:58 -0800 |
commit | e502997adaa4c84fae8bb33c4479492bb19e835f (patch) | |
tree | cd30635e53efb4980a61866c0af1445515b6eb90 /src/jsifier.js | |
parent | e791bb3d82328642ef4d8f7e606a58c8895f8462 (diff) |
improve LABEL_DEBUG
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 9a3d6ae2..9c022efb 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -562,7 +562,7 @@ function JSify(data, functionsOnly, givenFunctions) { } }); - if (LABEL_DEBUG) func.JS += " Module.print(INDENT + ' Entering: " + func.ident + "'); INDENT += ' ';\n"; + if (LABEL_DEBUG) func.JS += " Module.print(INDENT + ' Entering: " + func.ident + ": ' + Array.prototype.slice.call(arguments)); INDENT += ' ';\n"; if (true) { // TODO: optimize away when not needed if (CLOSURE_ANNOTATIONS) func.JS += '/** @type {number} */'; @@ -576,7 +576,7 @@ function JSify(data, functionsOnly, givenFunctions) { function getLabelLines(label, indent, relooping) { if (!label) return ''; var ret = ''; - if (LABEL_DEBUG) { + if (LABEL_DEBUG >= 2) { ret += indent + "Module.print(INDENT + '" + func.ident + ":" + label.ident + "');\n"; } if (EXECUTION_TIMEOUT > 0) { |