aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-03 10:59:41 -0700
committeralon@honor <none@none>2010-10-03 10:59:41 -0700
commitdf1e26bbe05df56f4fa8ad2beeeac9fc2b298f04 (patch)
treec0bbda12914972865016c885d643f3bae124c653 /src/jsifier.js
parenta3a01e7d784cdb31fdcbabd46a7f690a9ca990a0 (diff)
cleanup + test both optimized and non-optimized
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 69bc7d1e..1f41f5d7 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -291,7 +291,7 @@ function JSify(data) {
}
ret += '\n';
} else if (block.type == 'reloop') {
- ret += indent + block.entry + ': while(1) {\n';
+ ret += indent + block.entry + ': while(1) { // ' + block.entry + '\n';
ret += walkBlock(block.inner, indent + ' ');
ret += indent + '}\n';
ret += walkBlock(block.outer, indent);
@@ -428,7 +428,7 @@ function JSify(data) {
if (label[0] == 'B') {
if (label[1] == 'R') {
assert(oldLabel);
- return '__label__ = ' + getLabelId(oldLabel) + '; /* ' + label + ' */' + // TODO: optimize away
+ return '__label__ = ' + getLabelId(oldLabel) + '; /* ' + cleanLabel(oldLabel) + ' */ ' + // TODO: optimize away
'break ' + label.substr(5) + ';';
} else if (label[1] == 'C') {
return 'continue ' + label.substr(5) + ';';
@@ -436,7 +436,7 @@ function JSify(data) {
return ';'; // Returning no text might confuse this parser
}
} else {
- return '__label__ = ' + getLabelId(label) + '; /* ' + label + ' */ break;';
+ return '__label__ = ' + getLabelId(label) + '; /* ' + cleanLabel(label) + ' */ break;';
}
}