Fix VM memory allocation optimizations by reducing what we allocate on the heap
This commit is contained in:
@@ -23,7 +23,7 @@ func Socket(args ...object.Object) object.Object {
|
||||
proto int
|
||||
)
|
||||
|
||||
arg := args[0].(*object.String).Value
|
||||
arg := args[0].(object.String).Value
|
||||
|
||||
switch strings.ToLower(arg) {
|
||||
case "unix":
|
||||
@@ -61,5 +61,5 @@ func Socket(args ...object.Object) object.Object {
|
||||
}
|
||||
}
|
||||
|
||||
return &object.Integer{Value: int64(fd)}
|
||||
return object.Integer{Value: int64(fd)}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user