[JS IR] Generate main method call only for main module

This commit is contained in:
Ilya Goncharov
2021-09-30 18:32:18 +03:00
committed by Space
parent 27860ef008
commit 669965d56c
5 changed files with 54 additions and 6 deletions
@@ -880,6 +880,11 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/crossModuleRefIR/objectIsObject.kt");
}
@TestMetadata("onlyMainModuleCall.kt")
public void testOnlyMainModuleCall() throws Exception {
runTest("js/js.translator/testData/box/crossModuleRefIR/onlyMainModuleCall.kt");
}
@TestMetadata("topLevelExtension.kt")
public void testTopLevelExtension() throws Exception {
runTest("js/js.translator/testData/box/crossModuleRefIR/topLevelExtension.kt");
@@ -880,6 +880,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/crossModuleRefIR/objectIsObject.kt");
}
@TestMetadata("onlyMainModuleCall.kt")
public void testOnlyMainModuleCall() throws Exception {
runTest("js/js.translator/testData/box/crossModuleRefIR/onlyMainModuleCall.kt");
}
@TestMetadata("topLevelExtension.kt")
public void testTopLevelExtension() throws Exception {
runTest("js/js.translator/testData/box/crossModuleRefIR/topLevelExtension.kt");
@@ -880,6 +880,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/crossModuleRefIR/objectIsObject.kt");
}
@TestMetadata("onlyMainModuleCall.kt")
public void testOnlyMainModuleCall() throws Exception {
runTest("js/js.translator/testData/box/crossModuleRefIR/onlyMainModuleCall.kt");
}
@TestMetadata("topLevelExtension.kt")
public void testTopLevelExtension() throws Exception {
runTest("js/js.translator/testData/box/crossModuleRefIR/topLevelExtension.kt");