JS: don't throw AssertionError from RedundantCallElimination

Also mark JS `call` function to avoid removing a custom `call`
This commit is contained in:
Anton Bannykh
2018-08-10 18:12:03 +03:00
parent 0895f72570
commit 4e496cf2b2
7 changed files with 49 additions and 4 deletions
@@ -3835,6 +3835,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/inline/extensionWithManyArguments.kt");
}
@TestMetadata("faultyRedundantCallElimination.kt")
public void testFaultyRedundantCallElimination() throws Exception {
runTest("js/js.translator/testData/box/inline/faultyRedundantCallElimination.kt");
}
@TestMetadata("identityEquals.kt")
public void testIdentityEquals() throws Exception {
runTest("js/js.translator/testData/box/inline/identityEquals.kt");
@@ -3835,6 +3835,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/inline/extensionWithManyArguments.kt");
}
@TestMetadata("faultyRedundantCallElimination.kt")
public void testFaultyRedundantCallElimination() throws Exception {
runTest("js/js.translator/testData/box/inline/faultyRedundantCallElimination.kt");
}
@TestMetadata("identityEquals.kt")
public void testIdentityEquals() throws Exception {
runTest("js/js.translator/testData/box/inline/identityEquals.kt");