Forgot printing native functions

This commit is contained in:
2022-08-27 15:41:21 +01:00
parent ec91bac8a5
commit 3355c3a4c2

View File

@@ -187,9 +187,9 @@ void printLiteralCustom(Literal literal, void (printFn)(const char*)) {
break;
//TODO: functions
case LITERAL_FUNCTION: {
case LITERAL_FUNCTION:
case LITERAL_FUNCTION_NATIVE:
printFn("(function)");
}
break;
case LITERAL_IDENTIFIER: {
@@ -452,6 +452,7 @@ bool literalsAreEqual(Literal lhs, Literal rhs) {
return true;
case LITERAL_FUNCTION:
case LITERAL_FUNCTION_NATIVE:
return false; //functions are never equal
break;