[K/N] Make exception handling in initializers more consistent with jvm
^KT-57091
This commit is contained in:
committed by
Space Team
parent
0506d39d8a
commit
dc2e072af2
+12
@@ -35640,6 +35640,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
public void testAllFilesPresentInTopLevelInitializtion() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/topLevelInitializtion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("failInInitializer1.kt")
|
||||
public void testFailInInitializer1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("failInInitializer2.kt")
|
||||
public void testFailInInitializer2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+12
@@ -35826,6 +35826,18 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
public void testAllFilesPresentInTopLevelInitializtion() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/topLevelInitializtion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("failInInitializer1.kt")
|
||||
public void testFailInInitializer1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("failInInitializer2.kt")
|
||||
public void testFailInInitializer2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+12
@@ -35826,6 +35826,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
public void testAllFilesPresentInTopLevelInitializtion() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/topLevelInitializtion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("failInInitializer1.kt")
|
||||
public void testFailInInitializer1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("failInInitializer2.kt")
|
||||
public void testFailInInitializer2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+12
@@ -35826,6 +35826,18 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
public void testAllFilesPresentInTopLevelInitializtion() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/topLevelInitializtion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("failInInitializer1.kt")
|
||||
public void testFailInInitializer1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("failInInitializer2.kt")
|
||||
public void testFailInInitializer2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/topLevelInitializtion/failInInitializer2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user