mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Fixed declarations without initial value
This commit is contained in:
@@ -551,7 +551,7 @@ static void makeVariableDeclarationStmt(Toy_Bucket** bucketHandle, Toy_Parser* p
|
||||
makeExpr(bucketHandle, parser, &expr);
|
||||
}
|
||||
else {
|
||||
Toy_private_emitAstValue(bucketHandle, rootHandle, TOY_VALUE_FROM_NULL());
|
||||
Toy_private_emitAstValue(bucketHandle, &expr, TOY_VALUE_FROM_NULL());
|
||||
}
|
||||
|
||||
//finally, emit the declaration as an Ast
|
||||
|
||||
Reference in New Issue
Block a user