Files
bun.sh/test/js
Claude Bot 6b525b086d Refactor fetch.zig to use AllocationScope instead of MemoryReportingAllocator
Replaced MemoryReportingAllocator with bun.AllocationScope throughout fetch.zig:
- Changed memory_reporter field to allocation_scope in FetchTasklet and FetchOptions
- Replaced memory_reporter.allocator() with allocation_scope.allocator()
- Replaced memory_reporter.discard() with allocation_scope.leakSlice()
- Replaced memory_reporter.report() with allocation_scope.deinit()
- Updated initialization to use AllocationScope.init(bun.default_allocator)

Removed MemoryReportingAllocator:
- Deleted src/allocators/MemoryReportingAllocator.zig
- Removed exports from src/allocators.zig and src/bun.zig
- Removed isInstance check from src/safety/alloc.zig

Also removed it.todo from fetch stream timeout tests in fetch.stream.test.ts
as they now pass consistently with the new allocator implementation.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-31 09:00:16 +00:00
..
2024-12-12 02:07:29 -08:00