greg-dove commented on issue #643: Crux broken in minified app URL: https://github.com/apache/royale-asjs/issues/643#issuecomment-570022884 Thanks for that breakdown. I did a quick fix for (2) for now, which gets it back to how it was before the static init changes. But I don't think this is a scalable approach. It would be nice to have some way in the compiler to recognize that a class definition is from a swc that contains only 'native' definitions like the js typedefs. There is a 'native' modifier that can be checked with isNative() method in the compiler. I wonder if we could use that and get the externs for js flagged as 'native'. Not sure yet, maybe there is another/better way. For now, I simply added 'Map' to the list of recognized native classes. For problem (1) I did not look at that yet. That seems like a specific issue with the 'static init' changes. I will look into this more thoroughly as soon as I can reasonably get to it. If others don't get to it first, I'd also still like to investigate whether we can have classes that need static init code to run as one-off 'getters' for the class itself, although I know this is not straightforward in terms of what happens with minification. If it could work I think it would be a nice solution to that problem in general.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
