Skip to content

Commit 287792a

Browse files
committed
Fix parenthesis for boolean expressions
1 parent b150daf commit 287792a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/backend/functionNode_webgl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,11 @@ var functionNode_webgl = (function() {
539539
}
540540

541541
function ast_LogicalExpression(logNode, retArr, funcParam) {
542+
retArr.push("(");
542543
ast_generic(logNode.left, retArr, funcParam);
543544
retArr.push(logNode.operator);
544545
ast_generic(logNode.right, retArr, funcParam);
546+
retArr.push(")");
545547
return retArr;
546548
}
547549

0 commit comments

Comments
 (0)