mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
- Use platformTempDir() instead of hardcoded /tmp for cross-platform support - Add unique PID-based suffix to temp file to prevent collisions - Clean up temp file after REPL exits using defer unlinkat - Handle os.homedir() edge case when $HOME is unset - Debounce history writes to reduce disk I/O - Flush pending history on REPL close - Consolidate tests to reduce duplication - Add assertion that REPL prints "Welcome to Bun" Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>