Not quite. JS is round towards zero, ie. the same as C. If you look at the x86 instruction set then until SSE2 (when Intel specifically added an extra instruction to achieve this) this was extremely awkward to achieve. x86 always did round-to-nearest as the default.
The use of INT_MIN as the overflow value is an x86-ism however, in C the exact value is undefined.
The use of INT_MIN as the overflow value is an x86-ism however, in C the exact value is undefined.