[K/JS] Capture stackTrace before the init function call ^Fixed KT-55315
This commit is contained in:
@@ -3627,6 +3627,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/expression/misc/safeCallComputesExpressionOnlyOnce.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stackTraceAccessInsideInitBlock.kt")
|
||||
public void testStackTraceAccessInsideInitBlock() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/misc/stackTraceAccessInsideInitBlock.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stackTraceCapturing.kt")
|
||||
public void testStackTraceCapturing() throws Exception {
|
||||
|
||||
+6
@@ -4249,6 +4249,12 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
|
||||
runTest("js/js.translator/testData/box/expression/misc/safeCallComputesExpressionOnlyOnce.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stackTraceAccessInsideInitBlock.kt")
|
||||
public void testStackTraceAccessInsideInitBlock() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/misc/stackTraceAccessInsideInitBlock.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stackTraceCapturing.kt")
|
||||
public void testStackTraceCapturing() throws Exception {
|
||||
|
||||
+6
@@ -4249,6 +4249,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/expression/misc/safeCallComputesExpressionOnlyOnce.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stackTraceAccessInsideInitBlock.kt")
|
||||
public void testStackTraceAccessInsideInitBlock() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/misc/stackTraceAccessInsideInitBlock.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stackTraceCapturing.kt")
|
||||
public void testStackTraceCapturing() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user