[JS IR] Fix stack trace capturing in secondary constructors (KT-37563)
Call captureStack in primary constructors and generated factories
This commit is contained in:
+5
@@ -2621,6 +2621,11 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
|
||||
runTest("js/js.translator/testData/box/expression/misc/safeCallComputesExpressionOnlyOnce.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stackTraceCapturing.kt")
|
||||
public void testStackTraceCapturing() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/misc/stackTraceCapturing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringInterpolationEvaluationOrder.kt")
|
||||
public void testStringInterpolationEvaluationOrder() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/misc/stringInterpolationEvaluationOrder.kt");
|
||||
|
||||
+5
@@ -2621,6 +2621,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/expression/misc/safeCallComputesExpressionOnlyOnce.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stackTraceCapturing.kt")
|
||||
public void testStackTraceCapturing() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/misc/stackTraceCapturing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringInterpolationEvaluationOrder.kt")
|
||||
public void testStringInterpolationEvaluationOrder() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/misc/stringInterpolationEvaluationOrder.kt");
|
||||
|
||||
+5
@@ -2631,6 +2631,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/expression/misc/safeCallComputesExpressionOnlyOnce.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stackTraceCapturing.kt")
|
||||
public void testStackTraceCapturing() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/misc/stackTraceCapturing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringInterpolationEvaluationOrder.kt")
|
||||
public void testStringInterpolationEvaluationOrder() throws Exception {
|
||||
runTest("js/js.translator/testData/box/expression/misc/stringInterpolationEvaluationOrder.kt");
|
||||
|
||||
Reference in New Issue
Block a user