Fix some problems with jsCode function
1. Fix a bug in frontend when passing non-String constant led to exception 2. Fix a bug in backend when passing non-JetStringTeplate string constant led to exception 3. Avoid recomputing constant argument in backend
This commit is contained in:
@@ -47,6 +47,12 @@ public class JsCodeTestGenerated extends AbstractJsCodeTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("codeFromVariable.kt")
|
||||
public void testCodeFromVariable() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/jsCode/cases/codeFromVariable.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("continue.kt")
|
||||
public void testContinue() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("js/js.translator/testData/jsCode/cases/continue.kt");
|
||||
|
||||
Reference in New Issue
Block a user