feat: error handling (WIP)

This commit is contained in:
2025-05-15 19:44:38 +08:00
parent 1e50322af0
commit ed28efb623
4 changed files with 44 additions and 40 deletions

View File

@@ -152,7 +152,7 @@ impl<'vm, 'jit: 'vm> VM<'jit> {
Add => lhs.add(rhs),
Sub => lhs.add(rhs.neg()),
Mul => lhs.mul(rhs),
Div => lhs.div(rhs),
Div => lhs.div(rhs)?,
And => lhs.and(rhs),
Or => lhs.or(rhs),
Eq => lhs.eq(rhs),