JS: prevent optimizer from removing access to dynamic property access. See KT-15278

This commit is contained in:
Alexey Andreev
2016-12-26 15:39:27 +03:00
parent e1bec0df2e
commit e6be418dd3
4 changed files with 32 additions and 2 deletions
@@ -1400,6 +1400,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
doTest(fileName);
}
@TestMetadata("propertySideEffect.kt")
public void testPropertySideEffect() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/dynamic/propertySideEffect.kt");
doTest(fileName);
}
@TestMetadata("setByBrackets.kt")
public void testSetByBrackets() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/dynamic/setByBrackets.kt");