JS backend: don't create namespace entry if it is empty.
(cherry picked from commit 79d9ef4)
This commit is contained in:
+3
-1
@@ -111,7 +111,9 @@ final class NamespaceTranslator extends AbstractTranslator {
|
||||
|
||||
List<JsExpression> defineInvocation = descriptorToDefineInvocation.get(descriptor);
|
||||
if (defineInvocation == null) {
|
||||
createDefinitionPlace(initializer, descriptorToDefineInvocation);
|
||||
if (initializer != null || !visitor.getResult().isEmpty()) {
|
||||
createDefinitionPlace(initializer, descriptorToDefineInvocation);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (context().isEcma5() && initializer != null) {
|
||||
|
||||
Reference in New Issue
Block a user