JS: do not create duplicate local variables for packages

This commit is contained in:
Alexey Andreev
2017-02-13 16:19:48 +03:00
parent cb8189989c
commit df4c7048d0
3 changed files with 26 additions and 3 deletions
@@ -52,6 +52,8 @@ var JsInvocation.typeCheck: TypeCheck? by MetadataProperty(default = null)
var JsInvocation.boxing: Boolean by MetadataProperty(default = false)
var JsVars.exportedPackage: String? by MetadataProperty(default = null)
/**
* For function and lambda bodies indicates what declaration corresponds to.
* When absent (`null`) on body of a named function, this function is from external JS module.