I’ll give you an example. V8 used to have a compilation pipeline called Crankshaft. For technical reasons, it didn’t do a great job of optimizing any code within
catch blocks. This implementation detail caused some well-meaning developers to avoid
catch altogether in their code “because otherwise it would be slow”, and instead work around the lack of proper error handling in complicated ways.
Last year we shipped a new pipeline with TurboFan, our new optimizing compiler.
catch can now be optimized in V8. All those hacky workarounds are now moot.
Reply to this…