Repository navigation
Claude / Claude Code Review
completed
Jun 15, 2026 in 10m 49s
Code review found 1 potential issue
Found 1 candidates, confirmed 1. See review comments for details.
Details
| Severity | Count |
|---|---|
| 🔴 Important | 0 |
| 🟡 Nit | 1 |
| 🟣 Pre-existing | 0 |
| Severity | File:Line | Issue |
|---|---|---|
| 🟡 Nit | test/js/bun/util/base64-url-safe-encode.test.ts:101-107 |
New test does not exercise the changed Rust code path |
Annotations
Check warning on line 107 in test/js/bun/util/base64-url-safe-encode.test.ts
claude / Claude Code Review
New test does not exercise the changed Rust code path
This test's comment says it covers `Encoding::encode_with_max_size` so a mis-sized buffer would show up here, but `createHash` from `node:crypto` is implemented in C++ (`JSHash.cpp` → `StringBytes::encode`) and never reaches the Rust `encode_with_max_size` arm this PR modifies — only `Bun.CryptoHasher`, `Bun.CSRF.generate`, and `Bun.randomUUIDv7` go through it. Switch to `new Bun.CryptoHasher(algo)` (or add it alongside) so the test actually exercises the in-place encode it claims to cover; the
Loading