[JS IR] Fix stack trace capturing in secondary constructors (KT-37563)

Call captureStack in primary constructors and generated factories
This commit is contained in:
Svyatoslav Kuzmich
2020-06-10 11:59:17 +03:00
parent dfdc1e9c4f
commit 6792779281
11 changed files with 171 additions and 13 deletions
@@ -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");
@@ -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");
@@ -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");