Fix expression limited loops

This commit is contained in:
Fazli Sapuan 2016-02-25 15:40:52 +08:00
parent e15870a28e
commit 96e91ccec3

View File

@ -322,8 +322,7 @@ var functionNode_webgl = (function() {
}
if (forNode.test && forNode.test.type == "BinaryExpression") {
console.log(forNode);
if (forNode.test.right.type == "Identifier") {
if (forNode.test.right.type != "Literal") {
retArr.push("for (float ");
ast_generic(forNode.init, retArr, funcParam);
retArr.push(";");