Files
bun.sh/test/regression
Claude Bot f516baa0aa test: add regression test for issue #11680
Add regression test to verify that the floating point exception (SIGILL)
that occurred on macOS in os.loadavg() no longer happens.

The issue was caused by division by zero when the system's fscale value
was 0. This was fixed in commit 731a85f80d (June 8, 2024) by adding
zero-check guards before division in src/bun.js/node/node_os.zig.

The test verifies:
1. os.loadavg() returns valid finite numbers without crashing
2. DNS resolution with socket connections works without floating point errors

Fixes #11680

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 06:40:19 +00:00
..