aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-09 18:57:58 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-09 18:57:58 -0800
commite502997adaa4c84fae8bb33c4479492bb19e835f (patch)
treecd30635e53efb4980a61866c0af1445515b6eb90 /src/jsifier.js
parente791bb3d82328642ef4d8f7e606a58c8895f8462 (diff)
improve LABEL_DEBUG
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js4
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) {