fixed getReturn to not return NULL

This commit is contained in:
Partho
2025-04-11 12:55:14 -04:00
parent df8c9fb661
commit 8bc5997996

View File

@ -528,13 +528,13 @@ TableNode *getReturn(TableNode *definition) {
printdebug(
"passed a NULL entry to getReturn "
"function. Invalid.");
return NULL;
return undefined;
}
if (definition == undefined) {
printdebug(
"passed an undefined entry to getReturn "
"function. Invalid.");
return NULL;
return undefined;
}
if (strcmp(getType(definition), "primitive function type") != 0) {
printdebug(