aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-14 18:10:27 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-14 18:10:27 -0800
commited8723d8761fbf5be179f3fc492e4ffab71597f9 (patch)
tree3046322a797fda44f0e0b6b8c43469cf215ea2a1 /src
parentb596a26cd7b0af51967bd24082f772a0108a2a10 (diff)
use | in switch joined evaluations
Diffstat (limited to 'src')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 3f0bc4fe..83ddc62e 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1093,7 +1093,7 @@ function JSify(data, functionsOnly, givenFunctions) {
if (useIfs) {
value = targetLabels[targetLabel].map(function(value) {
return makeComparison(signedIdent, makeSignOp(value, item.type, 're'), item.type)
- }).join(' || ');
+ }).join(' | ');
ret += 'if (' + value + ') {\n';
} else {
value = targetLabels[targetLabel].map(function(value) {