Laura Harker

Results 24 comments of Laura Harker

I don't believe we've ever tried to implement this optimization. It'd be a good fit for https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/PeepholeFoldConstants.java. We'd need to back off on tagged template literals though.

We tried removing this pass a few months ago, but it caused CollapseProperties to break class-side inheritance after transpilation. The pass didn't realize that `Sub.method` referred to `Super.method`, so would...

Hi @adhamahmad, this is still an open issue and you're welcome to look into it. As mentioned in previous comments, we will review a PR for this but can't guarantee...

I agree this is a bug, but you might consider using a different strategy for making your functions available to external code by explicitly declaring them on the global object....