apache / royale-compiler

Apache Royale Compiler
https://royale.apache.org/
Apache License 2.0
95 stars 49 forks source link

Compiler should fail on MXML filename with invalid chars (like hyphen) #173

Closed estanglerbm closed 3 years ago

estanglerbm commented 3 years ago

If you compile a file external-test1.mxml, the compiler happily generates the JS output. But it will throw exceptions due to invalid object names, due to the hyphen (-).

Flex compiler throws this error:

Error: Invalid component name 'external-test1': component name must be legal ActionScript class name.