mirror of
https://github.com/gpujs/gpu.js.git
synced 2026-01-25 16:08:02 +00:00
Fix if statement without else
This commit is contained in:
parent
d82ea1f633
commit
93a78d795d
@ -343,8 +343,11 @@ var functionNode_webgl = (function() {
|
||||
ast_generic(ifNode.test, retArr, funcParam);
|
||||
retArr.push(")");
|
||||
ast_generic(ifNode.consequent, retArr, funcParam);
|
||||
retArr.push("else");
|
||||
ast_generic(ifNode.alternate, retArr, funcParam);
|
||||
|
||||
if (ifNode.alternate) {
|
||||
retArr.push("else");
|
||||
ast_generic(ifNode.alternate, retArr, funcParam);
|
||||
}
|
||||
return retArr;
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user