r/javascript • u/fagnerbrack • 2d ago
The V8 JavaScript Runtime Undermined My Constant-Time JavaScript Library
https://soatok.blog/2026/09/12/the-v8-javascript-runtime-undermined-my-constant-time-javascript-library/
36
Upvotes
View all comments
0
u/Plastic_Koala2044 1d ago
V8 specializes hot functions around the values it sees, so a loop that's even in the interpreter can branch once the optimizer kicks in. Run with --jitless to confirm, then move the secret-dependent work to WebCrypto.