Fix failing JS tests

This commit is contained in:
Alexey Andreev
2017-11-23 11:43:36 +03:00
parent 2dd66225f3
commit 6ab87ad66a
3 changed files with 2 additions and 11 deletions
@@ -1,6 +1,3 @@
// IGNORE_BACKEND: JS
// ^ see KT-21041
open class Base(val callback: () -> String)
class Outer {
@@ -4654,13 +4654,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("outerCapturedInLambdaInSecondaryConstructor.kt")
public void testOuterCapturedInLambdaInSecondaryConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/closures/captureInSuperConstructorCall/outerCapturedInLambdaInSecondaryConstructor.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
doTest(fileName);
}
@TestMetadata("outerCapturedInLambdaInSubExpression.kt")
@@ -1,4 +1,4 @@
// EXPECTED_REACHABLE_NODES: 1024
// EXPECTED_REACHABLE_NODES: 1127
fun box(): String {
val x = foo()
val y = bar()