Why use one of the trashiest languages, when we have so many good and effective languages outside of web browsers?
This isn't about C++.
ECMAScript has garbage collection.
So tell me... is predictable latency worse than a hard crash?
Hard real time stuff also is, by definition, broken code if you can't reason about worse case latency.