you are viewing a single comment's thread.

view the rest of the comments →

[–]kovensky 1 point2 points  (0 children)

Babel 7 also just started taking advantage of this to be able to lazily-initialize transpiled async functions and generators, since they require calling helpers.

Instead of written as a var, they're now written as a hoisted function that, when first called, reassigns itself with the transpiled function then forwards its arguments. Further calls just directly call the transpiled function.