Fix VM memory allocation optimizations by reducing what we allocate on the heap
This commit is contained in:
@@ -17,8 +17,8 @@ func Assert(args ...object.Object) object.Object {
|
||||
return newError(err.Error())
|
||||
}
|
||||
|
||||
if !args[0].(*object.Boolean).Value {
|
||||
fmt.Printf("Assertion Error: %s", args[1].(*object.String).Value)
|
||||
if !args[0].(object.Boolean).Value {
|
||||
fmt.Printf("Assertion Error: %s", args[1].(object.String).Value)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user