git » jacl.git » commit dc4cb3f

Fix %IF emit

author Alan Dipert
2020-01-06 07:14:25 UTC
committer Alan Dipert
2020-01-06 07:14:25 UTC
parent 30dd26098bffbb38dd69a0ec5d04d4ecc06309b4

Fix %IF emit

jacl.js +1 -1

diff --git a/jacl.js b/jacl.js
index 758ada5..f23a6cb 100644
--- a/jacl.js
+++ b/jacl.js
@@ -1715,7 +1715,7 @@ const emitNode = (print, node) => {
       break;
     case 'if':
       if (context === 'expr' || context === 'return') {
-        print('(');
+        print('((');
         emitNode(print, node.testNode);
         print('!==null)?')
         emitNode(print, node.thenNode);