Fix VM memory allocation optimizations by reducing what we allocate on the heap
This commit is contained in:
@@ -17,7 +17,7 @@ func Exit(args ...object.Object) object.Object {
|
||||
|
||||
var status int
|
||||
if len(args) == 1 {
|
||||
status = int(args[0].(*object.Integer).Value)
|
||||
status = int(args[0].(object.Integer).Value)
|
||||
}
|
||||
|
||||
object.ExitFunction(status)
|
||||
|
||||
Reference in New Issue
Block a user