Your sort does nothing in Node and works in Bun
A comparator that returns true or false never returns a negative number, so V8 leaves the array exactly as it was. The same line sorts correctly in Bun, which is why it survives code review and ships.
9 posts
A comparator that returns true or false never returns a negative number, so V8 leaves the array exactly as it was. The same line sorts correctly in Bun, which is why it survives code review and ships.
toLocaleString groups French numbers with a narrow no-break space, not a normal one. The two strings print the same, fail ===, and the obvious fix turns 1234.5 into 1 without throwing.
JavaScript sorts number-like keys to the front of every object, so an ID-keyed list loses the order your API sent. UUID fixtures hide it. Here is the fix.
A logger that reports where each log came from kept naming one identical line for the app. Its stack-frame filter never skipped itself. Bug, repro, fix.
I shipped a default API route at app/api/__log/route.ts. It never mounted. Next.js treats any folder starting with an underscore as private and keeps it out of routing, with no build error and no warning — here are the two checks I added so nobody hits it again.
Reaching for .buffer to turn a Node Buffer into an ArrayBuffer hands you the whole 8KB allocation pool, not your 15 bytes. Here is the HMAC it silently breaks, the password it leaks, and why it works fine on a big payload and fails on a small one.
A log call inside a React render body threw a Router error I'd never seen. The log call wasn't the problem — a throttle's leading edge firing synchronously three calls later was.
A request hook that merges headers with the spread operator keeps the token it just added and silently deletes every header the caller sent. Here is the test that proves it, in Node and in Chrome.
AbortSignal.timeout() starts counting when you create it, not when fetch runs. In a queue or retry loop it quietly kills requests still waiting their turn.