You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/05/10 17:49:26 UTC

[GitHub] [royale-compiler] carlosrovira opened a new issue #89: Bad generation of source-maps in libraries for @extern classes

carlosrovira opened a new issue #89: Bad generation of source-maps in libraries for @extern classes
URL: https://github.com/apache/royale-compiler/issues/89
 
 
   Hi,
   
   in Jewel library we have a `dialogPolyfill` class that is marked wih @externs
   it should be used in Alert.as 
   
       `dialogPolyfill.registerDialog(dialog);`
   
   but we have for now this:
   
       `window["dialogPolyfill"]["registerDialog"](dialog);`
   
   since compiler has a bug when generating source-maps for an @externs class that's located in a library (seems this not happen if the extern class is in the app, see hljs.as in tourdejewel for and example)
   
   Using the class `dialogPolyfill` we get in release mode this error:
   
   > end of list of source files
   > may 09, 2019 11:50:28 PM com.google.javascript.jscomp.LoggerErrorManager println
   > GRAVE: externs/dialogPolyfill.js.map:2: ERROR - Parse error. Semi-colon expected
   > "version":3,
   > 
   		

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services