Skip to content

Bad generation of source-maps in libraries for @extern classes #89

@carlosrovira

Description

@carlosrovira

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,

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions