3 ms·
If the point is to perform dead code elimination, why would you declare it as an extern? It seems reasonable to me to just treat it as another of your javascri
by ataggart 13y ago
If the point is to perform dead code elimination, why would you declare it as an extern? It seems reasonable to me to just treat it as another of your javascript files to be included in the compilation run.
- lennel 13y agoits a tad more complex that you would imagine from the get go. Certain coding patterns don't work well with closure; for example obj["name"] = a and elsewhere obj.name will cause issues. Of course it would make a lot of sense if they simply wrote it for AO, but I doubt that will happen. tldr: The reason people pull it as an extern is because it does not work with advanced optimisations.