aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-02 13:11:50 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-02 13:11:50 -0800
commit7b7e1b6a69b578f17ca9ab8a70fcdd023386dbb6 (patch)
treef09b4b1ad374e822163463575ec592096c840c09 /src/jsifier.js
parentaa449f08f0dfd1fb3581ab0c40b7633f718be7e3 (diff)
do not set label when continue-ing to a loop with one entry
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 1f4ab7f8..0cdafb5a 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -765,6 +765,9 @@ function JSify(data, functionsOnly, givenFunctions) {
}
return pre + labelSetting + 'break ' + trueLabel + ';';
} else if (label[1] == 'C') { // CONT
+ if (label[2] == 'N') { // BCNOL: continue, no label setting
+ labelSetting = '';
+ }
return pre + labelSetting + 'continue ' + trueLabel + ';';
} else if (label[1] == 'N') { // NOPP
return pre + ';'; // Returning no text might confuse this parser