Added missing cleanObject() call

This commit is contained in:
Sage Vaillancourt 2020-11-08 15:26:28 -05:00
parent 35f0a94f40
commit fc3fcf34ed
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ Object listEvalFunc(
func_result, errorObject(ONLY_ONE_ARGUMENT), env); func_result, errorObject(ONLY_ONE_ARGUMENT), env);
// Return a partial function if more parameters are required // Return a partial function if more parameters are required
// Otherwise, return the function result // Otherwise, return the function result
cleanObject(&rest[0]);
return isError(func_result, ONLY_ONE_ARGUMENT) ? return isError(func_result, ONLY_ONE_ARGUMENT) ?
cloneObject(*list) : cloneObject(*list) :
func_result; func_result;