mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
## Summary - Fix `spyOn` crash when using indexed property keys (e.g., `spyOn(arr, 0)`) ## Test plan - [x] Added tests for `spyOn` with numeric indexed properties - [x] Added tests for `spyOn` with string indexed properties (e.g., `"0"`) - [x] All existing `spyOn` tests pass - [x] Full `mock-fn.test.js` test suite passes Fixes ENG-21973 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com>