[JS IR] Fix kotlin.js.js with complex constant expressions

Use IR interpreter to evaluate complex constexprs
This commit is contained in:
Svyatoslav Kuzmich
2021-02-15 17:25:50 +03:00
parent 93289aa899
commit 6bd34db725
8 changed files with 46 additions and 12 deletions
@@ -5065,6 +5065,11 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/jsCode/codeFromVariable.kt");
}
@TestMetadata("constantExpression.kt")
public void testConstantExpression() throws Exception {
runTest("js/js.translator/testData/box/jsCode/constantExpression.kt");
}
@TestMetadata("continue.kt")
public void testContinue() throws Exception {
runTest("js/js.translator/testData/box/jsCode/continue.kt");
@@ -5065,6 +5065,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/jsCode/codeFromVariable.kt");
}
@TestMetadata("constantExpression.kt")
public void testConstantExpression() throws Exception {
runTest("js/js.translator/testData/box/jsCode/constantExpression.kt");
}
@TestMetadata("continue.kt")
public void testContinue() throws Exception {
runTest("js/js.translator/testData/box/jsCode/continue.kt");
@@ -5080,6 +5080,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/jsCode/codeFromVariable.kt");
}
@TestMetadata("constantExpression.kt")
public void testConstantExpression() throws Exception {
runTest("js/js.translator/testData/box/jsCode/constantExpression.kt");
}
@TestMetadata("continue.kt")
public void testContinue() throws Exception {
runTest("js/js.translator/testData/box/jsCode/continue.kt");