[JS IR] Not cast to declaration parent in JsCodeOutlineLowering, use parent otherwise

^KT-45057 fixed
This commit is contained in:
Ilya Goncharov
2021-02-19 17:28:17 +03:00
parent bd2601f289
commit 187d4998fa
5 changed files with 42 additions and 1 deletions
@@ -5105,6 +5105,11 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/jsCode/if.kt");
}
@TestMetadata("init.kt")
public void testInit() throws Exception {
runTest("js/js.translator/testData/box/jsCode/init.kt");
}
@TestMetadata("invocation.kt")
public void testInvocation() throws Exception {
runTest("js/js.translator/testData/box/jsCode/invocation.kt");
@@ -5105,6 +5105,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/jsCode/if.kt");
}
@TestMetadata("init.kt")
public void testInit() throws Exception {
runTest("js/js.translator/testData/box/jsCode/init.kt");
}
@TestMetadata("invocation.kt")
public void testInvocation() throws Exception {
runTest("js/js.translator/testData/box/jsCode/invocation.kt");
@@ -5120,6 +5120,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/jsCode/if.kt");
}
@TestMetadata("init.kt")
public void testInit() throws Exception {
runTest("js/js.translator/testData/box/jsCode/init.kt");
}
@TestMetadata("invocation.kt")
public void testInvocation() throws Exception {
runTest("js/js.translator/testData/box/jsCode/invocation.kt");