diff options
author | alon@honor <none@none> | 2010-10-04 21:15:59 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-04 21:15:59 -0700 |
commit | ccb8f47e51e20d0735f5478dd403309e43985a8a (patch) | |
tree | 51a92ec2c55eba7a47d54976617db8fec18261c3 /src/jsifier.js | |
parent | d4d0a06a49dba346ad20bce3392fb677822b0eb9 (diff) |
GUARD_LABELS option + further cleanup
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 4aee5a7c..b4b0952f 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -323,7 +323,9 @@ function JSify(data) { ret += indent + ' }\n'; first = false; }); - ret += indent + ' else { throw "Bad multiple branching: " + __label__ + " : " + (new Error().stack); }\n'; + if (GUARD_LABELS) { + ret += indent + ' else { throw "Bad multiple branching: " + __label__ + " : " + (new Error().stack); }\n'; + } ret += indent + '} while(0);\n'; } else { throw "Walked into an invalid block type: " + block.type; |