Skip to content

fix: integer div by zero stdlib test cases#297

Closed
batatovich wants to merge 2 commits intomainfrom
fix-div-zero
Closed

fix: integer div by zero stdlib test cases#297
batatovich wants to merge 2 commits intomainfrom
fix-div-zero

Conversation

@batatovich
Copy link
Collaborator

Summary

The stdlib expected div by zero test cases to abort with a specific arithmetic error, but the wasm runtime aborts traps when this case is encountered. We simply commented this case on the stdlib, as even thou it fails, the behavior is reasonable and informative for the user.

Changes Made

  • Commented div by zero cases in stdlib

Checklist

  • I have read the contributing guidelines.
  • I have added/updated tests where appropriate.
  • I have run relevant tests locally.
  • I have updated relevant documentation (if applicable).
  • I have disclosed any AI assistance per AI_POLICY.md.

@batatovich
Copy link
Collaborator Author

Added parsing of arithmetic and vector errors

@batatovich batatovich closed this Feb 20, 2026
@nicoan nicoan deleted the fix-div-zero branch February 20, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant