4 ms·
Guys, does V8 still deoptimize on ES6 features? For example, would using say const/lets in a function prevent V8 from optimizing it as a whole? That was the cas
by maga 11y ago
Guys, does V8 still deoptimize on ES6 features? For example, would using say const/lets in a function prevent V8 from optimizing it as a whole? That was the case some time ago when these features were still under a flag.
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]
- BinaryIdiot 11y agoI was wondering this myself and I couldn't find a clear answer. If you find out let me know! :)
- gear54rus 11y agoCan I ask for a link on that? Thanks!
- maga 11y agoThe one readily available on search: https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#2-unsupported-syntax https://github.com/petkaantonov/bluebird/wiki/Optimization-k... Otherwise the fact that engines bailout on optimizing ES6 features was kind of common knowledge when engines started to implement them.
- natorion 11y agoconst/let in particular does not prevent optimization. You just need to use "use strict" in order to use them.