mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-16 00:11:28 +00:00
Fix game-of-life example inconsistencies; Fix ternary expression issues in void contexts and variable statements; Simplify HEAP_BASE handling
This commit is contained in:
@ -3101,7 +3101,7 @@ export class Parser extends DiagnosticEmitter {
|
||||
);
|
||||
return null;
|
||||
}
|
||||
let ifElse = this.parseExpression(tn);
|
||||
let ifElse = this.parseExpression(tn, precedence > Precedence.COMMA ? Precedence.COMMA + 1 : 0);
|
||||
if (!ifElse) return null;
|
||||
expr = Node.createTernaryExpression(
|
||||
expr,
|
||||
|
Reference in New Issue
Block a user