assert and test changes
Some checks failed
Build / build (push) Successful in 1m18s
Test / build (push) Failing after 11m19s

This commit is contained in:
Chuck Smith
2024-03-19 08:15:11 -04:00
parent 0b1ed43ae5
commit 60d27f09d7
7 changed files with 164 additions and 142 deletions

View File

@@ -119,11 +119,7 @@ func (vm *VM) Run() error {
}
case code.OpPop:
// This makes things like this work:
// >> let x = 1; if (x == 1) { x = 2 }
if vm.sp > 0 {
vm.pop()
}
vm.pop()
case code.OpTrue:
err := vm.push(True)