The problem in my opinion is that not all JavaScript code will be efficiently optimized by these techniques. Some JavaScript code still gets frequently deoptimized, or optimized to a lesser extent.
The way to prevent that is to learn about these optimizations, which change often and in undocumented ways, making your code perform very differently across versions.
Because of this, I found the topic of JavaScript performance to be full of leaky abstractions (for the JavaScript user). Optimizing JavaScript in practice can be very, very hard.