My first time writing a substantial amount of javascript in like a decade: I accidentally pass an ArrayBuffer instead of Uint8Array to one of my functions. No errors, js happily gives me an undefined for arrayBuf[0] which immediately gets “corrected” into 0 because of a coercion I put into another function, and because I only made this mistake in one place, the result was completely plausible due to the other call sites being correct, which lead to hours of hunting for where this process was going wrong.
Skill issue? sure, but js is not fucking helping.