mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Fixed indexAccess potentially going awry with bad inputs
There's always one or two that slip through
This commit is contained in:
@@ -265,7 +265,9 @@ static bool execPrint(Toy_Interpreter* interpreter) {
|
||||
Toy_freeLiteral(idn);
|
||||
}
|
||||
|
||||
Toy_printLiteralCustom(lit, interpreter->printOutput);
|
||||
if (!TOY_IS_IDENTIFIER(lit)) {
|
||||
Toy_printLiteralCustom(lit, interpreter->printOutput);
|
||||
}
|
||||
|
||||
Toy_freeLiteral(lit);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user