Commit Graph

2 Commits

Author SHA1 Message Date
Claude Bot
be79d67802 address code review feedback for REPL
- Delete .bun_repl_history and add to .gitignore
- Fix memory leak in getCompletions for property names
- Use vm.waitForPromise instead of manual event loop polling
- Add proper cleanup for stores and arena on init failure
- Remove manual timeout from test helper

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 21:11:55 +00:00
Claude Bot
cf159ae2fb test(repl): add comprehensive tests for bun repl
Add 41 tests covering:
- REPL commands (.exit, .q, .help)
- Expression evaluation (numbers, strings, objects, arrays)
- Variable persistence across lines
- Function and class definitions
- Async/await support
- Built-in APIs (Bun, process, fetch, URL, etc.)
- Error handling (syntax and runtime errors)
- Modern JS features (destructuring, spread, arrow functions, etc.)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 20:51:57 +00:00