Add socket operations
Some checks failed
Build / build (push) Failing after 6m15s
Test / build (push) Failing after 6m6s

This commit is contained in:
Chuck Smith
2024-03-28 14:11:51 -04:00
parent 67c5b4cd66
commit fd8311b280
11 changed files with 325 additions and 5 deletions

View File

@@ -414,9 +414,9 @@ func evalBooleanInfixExpression(operator string, left, right object.Object) obje
switch operator {
case "&&":
return &object.Boolean{Value: leftVal && rightVal}
return nativeBoolToBooleanObject(leftVal && rightVal)
case "||":
return &object.Boolean{Value: leftVal || rightVal}
return nativeBoolToBooleanObject(leftVal || rightVal)
default:
return newError("unknown operator: %s %s %s", left.Type(), operator, right.Type())
}