Skip to content

Commit e865ee5

Browse files
author
Alex D
committed
more fixes
1 parent f8518c2 commit e865ee5

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/emitterlua.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,11 +2672,19 @@ export class EmitterLua {
26722672
this.processExpression(node.operand);
26732673
break;
26742674
case ts.SyntaxKind.ExclamationToken:
2675-
this.functionContext.textCode.push("not(");
2676-
this.processExpression(node.operand);
2677-
this.functionContext.textCode.push(")");
2675+
if (this.ignoreExtraLogic)
2676+
{
2677+
this.functionContext.textCode.push("not(");
2678+
this.processExpression(node.operand);
2679+
this.functionContext.textCode.push(")");
2680+
}
2681+
else
2682+
{
2683+
this.functionContext.textCode.push("__not(");
2684+
this.processExpression(node.operand);
2685+
this.functionContext.textCode.push(")");
2686+
}
26782687
break;
2679-
26802688
case ts.SyntaxKind.PlusPlusToken:
26812689
this.processExpression(node.operand);
26822690
this.functionContext.textCode.push(" = ");

0 commit comments

Comments
 (0)