From f69bd54d6c3abf097d3f4920d6220821f5ddc3a6 Mon Sep 17 00:00:00 2001 From: Roman Artemev Date: Wed, 13 Jun 2018 17:00:56 +0300 Subject: [PATCH] [JS IR BE] Update test data --- .../codegen/box/boxingOptimization/kt5493.kt | 1 - .../property/invokePropertyReference.kt | 1 - .../codegen/box/casts/castGenericNull.kt | 1 - .../box/classes/exceptionConstructor.kt | 1 - .../testData/codegen/box/classes/kt496.kt | 1 - .../testData/codegen/box/classes/kt501.kt | 1 - .../testData/codegen/box/classes/kt723.kt | 1 - .../breakFromOuter.kt | 1 - .../breakContinueInExpressions/tryFinally1.kt | 1 - .../box/controlStructures/breakInFinally.kt | 1 - .../controlStructures/finallyOnEmptyReturn.kt | 1 - .../codegen/box/controlStructures/kt14839.kt | 1 - .../codegen/box/controlStructures/kt15726.kt | 1 - .../codegen/box/controlStructures/kt1688.kt | 1 - .../codegen/box/controlStructures/kt2259.kt | 1 - .../codegen/box/controlStructures/kt2577.kt | 1 - .../codegen/box/controlStructures/kt3203_1.kt | 1 - .../codegen/box/controlStructures/kt3203_2.kt | 1 - .../codegen/box/controlStructures/kt3280.kt | 1 - .../codegen/box/controlStructures/kt628.kt | 1 - .../returnsNothing/inlineMethod.kt | 1 - .../returnsNothing/tryCatch.kt | 1 - .../controlStructures/tryCatchFinallyChain.kt | 1 - .../tryCatchInExpressions/catch.kt | 1 - .../tryCatchInExpressions/complexChain.kt | 1 - .../tryCatchInExpressions/deadTryCatch.kt | 1 - .../tryCatchInExpressions/expectException.kt | 1 - .../tryCatchInExpressions/finally.kt | 1 - .../tryCatchInExpressions/inlineTryCatch.kt | 1 - .../tryCatchInExpressions/inlineTryExpr.kt | 1 - .../tryCatchInExpressions/inlineTryFinally.kt | 1 - .../tryCatchInExpressions/kt17572.kt | 1 - .../tryCatchInExpressions/kt17572_2.kt | 1 - .../tryCatchInExpressions/kt17572_2_ext.kt | 1 - .../tryCatchInExpressions/kt17572_ext.kt | 1 - .../tryCatchInExpressions/kt17572_nested.kt | 1 - .../tryCatchInExpressions/kt17573.kt | 1 - .../tryCatchInExpressions/kt17573_nested.kt | 1 - .../tryCatchInExpressions/kt8608.kt | 1 - .../tryCatchInExpressions/kt9644try.kt | 1 - .../multipleCatchBlocks.kt | 1 - .../tryCatchInExpressions/splitTry.kt | 1 - .../tryCatchInExpressions/splitTryCorner1.kt | 1 - .../tryCatchInExpressions/splitTryCorner2.kt | 1 - .../tryCatchInExpressions/try.kt | 1 - .../tryCatchInExpressions/tryAfterTry.kt | 1 - .../tryCatchInExpressions/tryAndBreak.kt | 1 - .../tryCatchInExpressions/tryInsideCatch.kt | 1 - .../tryCatchInExpressions/tryInsideTry.kt | 1 - .../unmatchedInlineMarkers.kt | 1 - .../intersectingVariableRangeInFinally.kt | 1 - .../box/deadCodeElimination/kt14357.kt | 1 - .../underscoreNames.kt | 1 - .../elvis/kt6694ExactAnnotationForElvis.kt | 1 - .../codegen/box/exclExcl/genericNull.kt | 1 - .../codegen/box/extensionFunctions/shared.kt | 1 - .../codegen/box/finally/finallyAndFinally.kt | 1 - .../testData/codegen/box/finally/kt3549.kt | 1 - .../testData/codegen/box/finally/kt3706.kt | 1 - .../testData/codegen/box/finally/kt3867.kt | 1 - .../testData/codegen/box/finally/kt3894.kt | 1 - .../testData/codegen/box/finally/kt4134.kt | 1 - .../box/functions/coerceVoidToArray.kt | 1 - .../box/functions/coerceVoidToObject.kt | 1 - .../codegen/box/functions/invoke/kt3297.kt | 1 - .../exceptionInFieldInitializer.kt | 1 - .../box/lazyCodegen/tryCatchExpression.kt | 1 - .../box/operatorConventions/overloadedSet.kt | 1 - .../remAssignmentOperation.kt | 1 - .../remOverModOperation.kt | 1 - .../boxedEqPrimitiveEvaluationOrder.kt | 1 - .../primitiveTypes/nullAsNullableIntIsNull.kt | 1 - .../privatePropertyInConstructor.kt | 1 - .../codegen/box/regressions/kt18779.kt | 1 - .../codegen/box/regressions/kt3107.kt | 1 - .../withNonLocalReturn.kt | 1 - .../codegen/box/smartCasts/kt17725.kt | 1 - .../codegen/box/smartCasts/kt19100.kt | 1 - .../box/traits/diamondPropertyAccessors.kt | 1 - .../codegen/box/typeMapping/kt2831.kt | 1 - .../codegen/box/typeMapping/kt3286.kt | 1 - .../codegen/box/when/exceptionOnNoMatch.kt | 1 - .../boxInline/nonLocalReturns/kt8948.kt | 1 - .../boxInline/nonLocalReturns/kt8948v2.kt | 1 - .../tryFinally/callSite/finallyInFinally.kt | 1 - .../tryFinally/callSite/wrongVarInterval.kt | 1 - .../tryFinally/chained/finallyInFinally.kt | 1 - .../tryFinally/chained/finallyInFinally2.kt | 1 - .../tryFinally/chained/intReturn.kt | 1 - .../tryFinally/chained/intReturnComplex.kt | 1 - .../tryFinally/chained/intReturnComplex2.kt | 1 - .../tryFinally/chained/intReturnComplex3.kt | 1 - .../tryFinally/chained/intReturnComplex4.kt | 1 - .../tryFinally/declSite/intReturn.kt | 1 - .../tryFinally/declSite/intReturnComplex.kt | 1 - .../tryFinally/declSite/nested.kt | 1 - .../tryFinally/declSite/returnInFinally.kt | 1 - .../tryFinally/declSite/returnInTry.kt | 1 - .../declSite/returnInTryAndFinally.kt | 1 - .../tryFinally/declSite/severalInTry.kt | 1 - .../declSite/severalInTryComplex.kt | 1 - .../tryFinally/declSite/voidInlineFun.kt | 1 - .../tryFinally/declSite/voidNonLocal.kt | 1 - .../exceptionTable/innerAndExternal.kt | 1 - .../exceptionTable/innerAndExternalNested.kt | 1 - .../exceptionTable/innerAndExternalSimple.kt | 1 - .../tryFinally/exceptionTable/nested.kt | 1 - .../exceptionTable/nestedWithReturns.kt | 1 - .../exceptionTable/nestedWithReturnsSimple.kt | 1 - .../tryFinally/exceptionTable/noFinally.kt | 1 - .../tryFinally/exceptionTable/synchonized.kt | 1 - .../nonLocalReturns/tryFinally/kt7273.kt | 1 - .../nonLocalReturnFromOuterLambda.kt | 1 - .../js/test/semantics/BoxJsTestGenerated.java | 5 ++ .../test/semantics/IrBoxJsTestGenerated.java | 5 ++ .../callableReference/property/delegated.kt | 1 - .../box/coercion/tryWithEmptyCatch.kt | 1 - .../box/expression/cast/castToFunction.kt | 1 - .../box/expression/cast/castToGenericType.kt | 1 - ...astToGenericTypeWithMultipleUpperBounds.kt | 1 - .../cast/castToGenericTypeWithUpperBound.kt | 1 - .../box/expression/cast/castToNotNull.kt | 1 - .../box/expression/cast/castToNullable.kt | 1 - .../box/expression/cast/reifiedToNotNull.kt | 1 - .../box/expression/cast/reifiedToNullable1.kt | 1 - .../box/expression/cast/reifiedToNullable2.kt | 1 - .../safeCastToGenericTypeWithUpperBound.kt | 1 - .../box/expression/cast/safeCastToNotNull.kt | 1 - .../box/expression/cast/safeCastToNullable.kt | 1 - .../cast/safeCastToReifiedNotNull.kt | 1 - .../cast/safeCastToReifiedNullable.kt | 1 - .../evaluationOrder/andAndWithSideEffect.kt | 1 - .../assignToDotQualifiedWithSideEffect.kt | 1 - .../expression/evaluationOrder/callArgs.kt | 1 - .../evaluationOrder/deepExpression.kt | 66 ++++++++++++------- .../evaluationOrder/elvisComplex.kt | 1 - .../equalsIntrinsicWithSideEffect.kt | 1 - .../evaluationOrder/ifWithComplex.kt | 1 - .../evaluationOrder/intrinsicComplex.kt | 1 - .../evaluationOrder/orOrWithSideEffect.kt | 1 - .../whenWithComplexConditions.kt | 1 - .../if/ifElseAsExpressionWithThrow.kt | 1 - .../testData/box/expression/if/nestedIf.kt | 1 - .../box/expression/misc/elvisWithThrow.kt | 1 - .../box/expression/misc/exclExclThrows.kt | 1 - .../box/expression/try/multipleCatchBlocks.kt | 1 - .../expression/try/nestedTryCatchInCatch.kt | 26 ++++++++ .../try/rethrowExceptionIfNotCaught.kt | 1 - .../try/tryCatchCorrectForSubclasses.kt | 1 - .../box/expression/try/tryCatchDynamic.kt | 1 - .../box/expression/try/tryCatchExpr.kt | 9 ++- .../try/tryCatchExpressionWithMessage.kt | 1 - .../box/expression/try/tryCatchThrowable.kt | 1 - .../tryCatchWithDifferentParameterNames.kt | 1 - .../testData/box/expression/when/ifInWhen.kt | 1 - .../when/ifInWhenDanglingElseIssue.kt | 1 - .../when/whenAsExpressionWithThrow.kt | 1 - .../while/doWhileWithComplexCondition.kt | 1 - .../doWhileWithComplexConditionAndContinue.kt | 1 - .../while/whileWithComplexCondition.kt | 1 - .../whileWithComplexConditionAndContinue.kt | 1 - .../while/whileWithComplexOneStatement.kt | 1 - .../complexTopLevelPropertyInitializer.kt | 1 - .../declarationInitializedWithThrow.kt | 1 - .../box/inlineEvaluationOrder/doWhile.kt | 1 - .../inlineEvaluationOrder/doWhileComplex.kt | 1 - .../box/inlineEvaluationOrder/while.kt | 1 - .../box/inlineEvaluationOrder/whileComplex.kt | 1 - .../testData/box/inlineMultiFile/use.kt | 1 - .../testData/box/jsCode/tryCatchFinally.kt | 1 - .../box/native/castToNativeClassChecked.kt | 1 - .../native/castToNativeInterfaceChecked.kt | 1 - .../testData/box/regression/kt2470.kt | 1 - .../testData/box/rtti/exceptionIsInterface.kt | 1 - 174 files changed, 83 insertions(+), 197 deletions(-) create mode 100644 js/js.translator/testData/box/expression/try/nestedTryCatchInCatch.kt diff --git a/compiler/testData/codegen/box/boxingOptimization/kt5493.kt b/compiler/testData/codegen/box/boxingOptimization/kt5493.kt index c1bf31ae6f5..efd7e94a5f7 100644 --- a/compiler/testData/codegen/box/boxingOptimization/kt5493.kt +++ b/compiler/testData/codegen/box/boxingOptimization/kt5493.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box() : String { try { return "OK" diff --git a/compiler/testData/codegen/box/callableReference/property/invokePropertyReference.kt b/compiler/testData/codegen/box/callableReference/property/invokePropertyReference.kt index d8ddedc804c..617732ae7f0 100644 --- a/compiler/testData/codegen/box/callableReference/property/invokePropertyReference.kt +++ b/compiler/testData/codegen/box/callableReference/property/invokePropertyReference.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR var state = "" var topLevel: Int diff --git a/compiler/testData/codegen/box/casts/castGenericNull.kt b/compiler/testData/codegen/box/casts/castGenericNull.kt index 38966918a08..42628250375 100644 --- a/compiler/testData/codegen/box/casts/castGenericNull.kt +++ b/compiler/testData/codegen/box/casts/castGenericNull.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun castToString(t: T) { t as String } diff --git a/compiler/testData/codegen/box/classes/exceptionConstructor.kt b/compiler/testData/codegen/box/classes/exceptionConstructor.kt index f1fee09616c..30da7cb5b09 100644 --- a/compiler/testData/codegen/box/classes/exceptionConstructor.kt +++ b/compiler/testData/codegen/box/classes/exceptionConstructor.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class GameError(msg: String): Exception(msg) { } diff --git a/compiler/testData/codegen/box/classes/kt496.kt b/compiler/testData/codegen/box/classes/kt496.kt index 65ac686a7fd..e4c31c86a27 100644 --- a/compiler/testData/codegen/box/classes/kt496.kt +++ b/compiler/testData/codegen/box/classes/kt496.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun test1() : Boolean { try { return true diff --git a/compiler/testData/codegen/box/classes/kt501.kt b/compiler/testData/codegen/box/classes/kt501.kt index 28815a54588..6705704587e 100644 --- a/compiler/testData/codegen/box/classes/kt501.kt +++ b/compiler/testData/codegen/box/classes/kt501.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class Reluctant() { init { throw Exception("I'm not coming out") diff --git a/compiler/testData/codegen/box/classes/kt723.kt b/compiler/testData/codegen/box/classes/kt723.kt index 8c79fd2c65b..6d020a0bc99 100644 --- a/compiler/testData/codegen/box/classes/kt723.kt +++ b/compiler/testData/codegen/box/classes/kt723.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR operator fun Int?.inc() : Int { if (this != null) return this.inc() else throw NullPointerException() } public fun box() : String { diff --git a/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakFromOuter.kt b/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakFromOuter.kt index cc8f393c387..7566e7c14a9 100644 --- a/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakFromOuter.kt +++ b/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/breakFromOuter.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { OUTER@while (true) { var x = "" diff --git a/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/tryFinally1.kt b/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/tryFinally1.kt index 2b17f9c6982..b918861535a 100644 --- a/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/tryFinally1.kt +++ b/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/tryFinally1.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { var x = "OK" while (true) { diff --git a/compiler/testData/codegen/box/controlStructures/breakInFinally.kt b/compiler/testData/codegen/box/controlStructures/breakInFinally.kt index b4041e7dc20..d761ee60360 100644 --- a/compiler/testData/codegen/box/controlStructures/breakInFinally.kt +++ b/compiler/testData/codegen/box/controlStructures/breakInFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { while (true) { try { diff --git a/compiler/testData/codegen/box/controlStructures/finallyOnEmptyReturn.kt b/compiler/testData/codegen/box/controlStructures/finallyOnEmptyReturn.kt index 43ac5589e75..db1262a9d7a 100644 --- a/compiler/testData/codegen/box/controlStructures/finallyOnEmptyReturn.kt +++ b/compiler/testData/codegen/box/controlStructures/finallyOnEmptyReturn.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR var result = "Fail" fun foo() { diff --git a/compiler/testData/codegen/box/controlStructures/kt14839.kt b/compiler/testData/codegen/box/controlStructures/kt14839.kt index 0ff9544879d..c76925da31f 100644 --- a/compiler/testData/codegen/box/controlStructures/kt14839.kt +++ b/compiler/testData/codegen/box/controlStructures/kt14839.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { try { } catch (e: Exception) { diff --git a/compiler/testData/codegen/box/controlStructures/kt15726.kt b/compiler/testData/codegen/box/controlStructures/kt15726.kt index 30bc98f4abb..eb4e336f3e9 100644 --- a/compiler/testData/codegen/box/controlStructures/kt15726.kt +++ b/compiler/testData/codegen/box/controlStructures/kt15726.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun nyCompiler() { try { diff --git a/compiler/testData/codegen/box/controlStructures/kt1688.kt b/compiler/testData/codegen/box/controlStructures/kt1688.kt index 6587cc70c63..0bbc232c5f1 100644 --- a/compiler/testData/codegen/box/controlStructures/kt1688.kt +++ b/compiler/testData/codegen/box/controlStructures/kt1688.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { var s = "" try { diff --git a/compiler/testData/codegen/box/controlStructures/kt2259.kt b/compiler/testData/codegen/box/controlStructures/kt2259.kt index 6091c7f9317..f0d79145682 100644 --- a/compiler/testData/codegen/box/controlStructures/kt2259.kt +++ b/compiler/testData/codegen/box/controlStructures/kt2259.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun foo(args: Array) { try { } finally { diff --git a/compiler/testData/codegen/box/controlStructures/kt2577.kt b/compiler/testData/codegen/box/controlStructures/kt2577.kt index 7498506dd55..c11ba235411 100644 --- a/compiler/testData/codegen/box/controlStructures/kt2577.kt +++ b/compiler/testData/codegen/box/controlStructures/kt2577.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun foo(): Int { try { } finally { diff --git a/compiler/testData/codegen/box/controlStructures/kt3203_1.kt b/compiler/testData/codegen/box/controlStructures/kt3203_1.kt index 5ebfba0cb4a..a1b72471df1 100644 --- a/compiler/testData/codegen/box/controlStructures/kt3203_1.kt +++ b/compiler/testData/codegen/box/controlStructures/kt3203_1.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun testIf() { val condition = true val result = if (condition) { diff --git a/compiler/testData/codegen/box/controlStructures/kt3203_2.kt b/compiler/testData/codegen/box/controlStructures/kt3203_2.kt index eb1eedfca3a..bde4cc3fe77 100644 --- a/compiler/testData/codegen/box/controlStructures/kt3203_2.kt +++ b/compiler/testData/codegen/box/controlStructures/kt3203_2.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun check1() { val result = if (true) { if (true) 1 else 2 diff --git a/compiler/testData/codegen/box/controlStructures/kt3280.kt b/compiler/testData/codegen/box/controlStructures/kt3280.kt index 9cc60fde02b..2a2b87a8f1c 100644 --- a/compiler/testData/codegen/box/controlStructures/kt3280.kt +++ b/compiler/testData/codegen/box/controlStructures/kt3280.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun foo() { var x = 0 do { diff --git a/compiler/testData/codegen/box/controlStructures/kt628.kt b/compiler/testData/codegen/box/controlStructures/kt628.kt index a42b7bf93dc..234e336e5a7 100644 --- a/compiler/testData/codegen/box/controlStructures/kt628.kt +++ b/compiler/testData/codegen/box/controlStructures/kt628.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class A() { fun action() = "OK" diff --git a/compiler/testData/codegen/box/controlStructures/returnsNothing/inlineMethod.kt b/compiler/testData/codegen/box/controlStructures/returnsNothing/inlineMethod.kt index 401aa84ce9d..5ec5f8feff2 100644 --- a/compiler/testData/codegen/box/controlStructures/returnsNothing/inlineMethod.kt +++ b/compiler/testData/codegen/box/controlStructures/returnsNothing/inlineMethod.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR inline fun exit(): Nothing = null!! fun box(): String { diff --git a/compiler/testData/codegen/box/controlStructures/returnsNothing/tryCatch.kt b/compiler/testData/codegen/box/controlStructures/returnsNothing/tryCatch.kt index 82ab85c8e99..bc23f5cb748 100644 --- a/compiler/testData/codegen/box/controlStructures/returnsNothing/tryCatch.kt +++ b/compiler/testData/codegen/box/controlStructures/returnsNothing/tryCatch.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun exit(): Nothing = null!! fun box(): String { diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchFinallyChain.kt b/compiler/testData/codegen/box/controlStructures/tryCatchFinallyChain.kt index 57f2692c808..b0ee1f314dc 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchFinallyChain.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchFinallyChain.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box() : String { try { } finally { diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/catch.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/catch.kt index d2a612013d3..cb00faf1fe3 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/catch.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/catch.kt @@ -1,3 +1,2 @@ -// IGNORE_BACKEND: JS_IR fun box(): String = "O" + try { throw Exception("oops!") } catch (e: Exception) { "K" } \ No newline at end of file diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/complexChain.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/complexChain.kt index 08860756487..36f2e84f29f 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/complexChain.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/complexChain.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun cleanup() {} inline fun concat(x: String, y: String): String = x + y diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/deadTryCatch.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/deadTryCatch.kt index da509477c12..41a91a17e08 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/deadTryCatch.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/deadTryCatch.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR inline fun catchAll(x: String, block: () -> Unit): String { try { block() diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/expectException.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/expectException.kt index acf28043404..63bd4900c12 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/expectException.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/expectException.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR public inline fun fails(block: () -> Unit): Throwable? { var thrown: Throwable? = null try { diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/finally.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/finally.kt index fb88bb75159..2d4b9f825a7 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/finally.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/finally.kt @@ -1,3 +1,2 @@ -// IGNORE_BACKEND: JS_IR fun box(): String = "O" + try { "K" } finally { "hmmm" } \ No newline at end of file diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryCatch.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryCatch.kt index f2805c98c17..dd3a181348a 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryCatch.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryCatch.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR inline fun tryOrElse(f1: () -> T, f2: () -> T): T { try { return f1() diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryExpr.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryExpr.kt index 1000c16fb62..8205200452a 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryExpr.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryExpr.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR inline fun tryOrElse(f1: () -> T, f2: () -> T): T = try { f1() } catch (e: Exception) { f2() } diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryFinally.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryFinally.kt index 9a0f1158bc1..eb488beb689 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryFinally.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/inlineTryFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR inline fun tryAndThen(f1: () -> Unit, f2: () -> Unit, f3: () -> T): T { try { f1() diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572.kt index e8b9be9b24c..368df7ae6f9 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun zap(s: String) = s inline fun tryZap(string: String, fn: (String) -> String) = diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2.kt index 02150edac65..ed417d9b8bc 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun zap(s: String) = s inline fun tryZap(s1: String, s2: String, fn: (String, String) -> String) = diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2_ext.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2_ext.kt index 567b850fa3f..6f5cb1df234 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2_ext.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_2_ext.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun zap(s: String) = s inline fun tryZap(s1: String, s2: String, fn: String.(String) -> String) = diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_ext.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_ext.kt index f92d92f24e2..8e9066f7cc7 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_ext.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_ext.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun zap(s: String) = s inline fun tryZap(string: String, fn: String.() -> String) = diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_nested.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_nested.kt index b41e284cfaa..7d7467b0694 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_nested.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17572_nested.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun zap(s: String) = s inline fun tryZap(string: String, fn: (String) -> String) = diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573.kt index 10779b49f69..de1d0b45cbc 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun zap(s: String) = s inline fun tryZap(string: String, fn: (String) -> String) = diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573_nested.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573_nested.kt index a4fd2e6c5db..e241aec5239 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573_nested.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt17573_nested.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun zap(s: String) = s inline fun tryZap1(string: String, fn: (String) -> String) = diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt8608.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt8608.kt index 3cae13667a5..1d0b92b2c09 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt8608.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt8608.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR interface Callable { fun call(b: Boolean) } diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt9644try.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt9644try.kt index 75ee6ef9040..63921992a06 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt9644try.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/kt9644try.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR inline fun doCall(f: () -> Any) = f() fun test1() { diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/multipleCatchBlocks.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/multipleCatchBlocks.kt index 2c42d8581c3..4d1bf16a733 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/multipleCatchBlocks.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/multipleCatchBlocks.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class Exception1(msg: String): Exception(msg) class Exception2(msg: String): Exception(msg) class Exception3(msg: String): Exception(msg) diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt index 7e23216c864..c60bde586a1 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTry.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR inline fun test(s: () -> Int): Int = try { val i = s() diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt index 029281c57ae..bbf5ad07064 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner1.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun shouldReturnFalse() : Boolean { try { return true diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt index d7dbad59668..7c0c3e81c55 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/splitTryCorner2.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun shouldReturn11() : Int { var x = 0 while (true) { diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/try.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/try.kt index 6c45f0e7eba..695e324988e 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/try.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/try.kt @@ -1,3 +1,2 @@ -// IGNORE_BACKEND: JS_IR fun box(): String = "O" + try { "K" } catch (e: Exception) { "oops!" } \ No newline at end of file diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAfterTry.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAfterTry.kt index afdfe3273b4..7d6dcc3d2a3 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAfterTry.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAfterTry.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String = "" + try { "O" } catch (e: Exception) { "1" } + diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAndBreak.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAndBreak.kt index 78313a826c5..a1f867b1c3d 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAndBreak.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryAndBreak.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun idiv(a: Int, b: Int): Int = if (b == 0) throw Exception("Division by zero") else a / b diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideCatch.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideCatch.kt index 50ccb7a178d..09f9857b57c 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideCatch.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideCatch.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String = "O" + try { diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideTry.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideTry.kt index ee64fed8cec..3d1ccd9e7ae 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideTry.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideTry.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class MyException(message: String): Exception(message) fun box(): String = diff --git a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/unmatchedInlineMarkers.kt b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/unmatchedInlineMarkers.kt index 737bd0af4be..015b4137f65 100644 --- a/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/unmatchedInlineMarkers.kt +++ b/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/unmatchedInlineMarkers.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR inline fun catchAll(x: String, block: () -> Unit): String { try { block() diff --git a/compiler/testData/codegen/box/deadCodeElimination/intersectingVariableRangeInFinally.kt b/compiler/testData/codegen/box/deadCodeElimination/intersectingVariableRangeInFinally.kt index 97f3bd9efde..071bd50aa47 100644 --- a/compiler/testData/codegen/box/deadCodeElimination/intersectingVariableRangeInFinally.kt +++ b/compiler/testData/codegen/box/deadCodeElimination/intersectingVariableRangeInFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { try { return "OK" diff --git a/compiler/testData/codegen/box/deadCodeElimination/kt14357.kt b/compiler/testData/codegen/box/deadCodeElimination/kt14357.kt index e5d19d6161f..377a6facdac 100644 --- a/compiler/testData/codegen/box/deadCodeElimination/kt14357.kt +++ b/compiler/testData/codegen/box/deadCodeElimination/kt14357.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { if (false) { try { diff --git a/compiler/testData/codegen/box/destructuringDeclInLambdaParam/underscoreNames.kt b/compiler/testData/codegen/box/destructuringDeclInLambdaParam/underscoreNames.kt index e6ac3a2eb15..8db07f7778e 100644 --- a/compiler/testData/codegen/box/destructuringDeclInLambdaParam/underscoreNames.kt +++ b/compiler/testData/codegen/box/destructuringDeclInLambdaParam/underscoreNames.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class A { operator fun component1() = "O" operator fun component2(): String = throw RuntimeException("fail 0") diff --git a/compiler/testData/codegen/box/elvis/kt6694ExactAnnotationForElvis.kt b/compiler/testData/codegen/box/elvis/kt6694ExactAnnotationForElvis.kt index 21781173d25..af26c6e87f2 100644 --- a/compiler/testData/codegen/box/elvis/kt6694ExactAnnotationForElvis.kt +++ b/compiler/testData/codegen/box/elvis/kt6694ExactAnnotationForElvis.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR interface PsiElement { fun findChildByType(i: Int): T? = if (i == 42) JetOperationReferenceExpression() as T else throw Exception() diff --git a/compiler/testData/codegen/box/exclExcl/genericNull.kt b/compiler/testData/codegen/box/exclExcl/genericNull.kt index 77002fd6b01..0d4f831dfb7 100644 --- a/compiler/testData/codegen/box/exclExcl/genericNull.kt +++ b/compiler/testData/codegen/box/exclExcl/genericNull.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun foo(t: T) { t!! } diff --git a/compiler/testData/codegen/box/extensionFunctions/shared.kt b/compiler/testData/codegen/box/extensionFunctions/shared.kt index 8b841b86df1..3cf651590a4 100644 --- a/compiler/testData/codegen/box/extensionFunctions/shared.kt +++ b/compiler/testData/codegen/box/extensionFunctions/shared.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR infix fun T.mustBe(t : T) { assert("$this must be $t") {this == t} } diff --git a/compiler/testData/codegen/box/finally/finallyAndFinally.kt b/compiler/testData/codegen/box/finally/finallyAndFinally.kt index 870fdeec157..e902bc8746f 100644 --- a/compiler/testData/codegen/box/finally/finallyAndFinally.kt +++ b/compiler/testData/codegen/box/finally/finallyAndFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class MyString { var s = "" operator fun plus(x : String) : MyString { diff --git a/compiler/testData/codegen/box/finally/kt3549.kt b/compiler/testData/codegen/box/finally/kt3549.kt index fc7bd8e2c3e..8e6f09f2aff 100644 --- a/compiler/testData/codegen/box/finally/kt3549.kt +++ b/compiler/testData/codegen/box/finally/kt3549.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun test1() : String { var s = ""; try { diff --git a/compiler/testData/codegen/box/finally/kt3706.kt b/compiler/testData/codegen/box/finally/kt3706.kt index ad7eddc0477..923e3aa045a 100644 --- a/compiler/testData/codegen/box/finally/kt3706.kt +++ b/compiler/testData/codegen/box/finally/kt3706.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun f(): Int { try { return 0 diff --git a/compiler/testData/codegen/box/finally/kt3867.kt b/compiler/testData/codegen/box/finally/kt3867.kt index 0cb06ce0135..8e41ea804b5 100644 --- a/compiler/testData/codegen/box/finally/kt3867.kt +++ b/compiler/testData/codegen/box/finally/kt3867.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun fail() = if (true) throw RuntimeException() else 1 fun test1(): String { diff --git a/compiler/testData/codegen/box/finally/kt3894.kt b/compiler/testData/codegen/box/finally/kt3894.kt index 7b288ab6a26..83930d88fbd 100644 --- a/compiler/testData/codegen/box/finally/kt3894.kt +++ b/compiler/testData/codegen/box/finally/kt3894.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class MyString { var s = "" operator fun plus(x : String) : MyString { diff --git a/compiler/testData/codegen/box/finally/kt4134.kt b/compiler/testData/codegen/box/finally/kt4134.kt index 8357d5db166..24e4750d089 100644 --- a/compiler/testData/codegen/box/finally/kt4134.kt +++ b/compiler/testData/codegen/box/finally/kt4134.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun io(s: R, a: (R) -> T): T { try { return a(s) diff --git a/compiler/testData/codegen/box/functions/coerceVoidToArray.kt b/compiler/testData/codegen/box/functions/coerceVoidToArray.kt index a2f104ecc91..695a3a50187 100644 --- a/compiler/testData/codegen/box/functions/coerceVoidToArray.kt +++ b/compiler/testData/codegen/box/functions/coerceVoidToArray.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun a(): IntArray? = null fun b(): Nothing = throw Exception() diff --git a/compiler/testData/codegen/box/functions/coerceVoidToObject.kt b/compiler/testData/codegen/box/functions/coerceVoidToObject.kt index 63e7f7d3ed1..660ea0d44ec 100644 --- a/compiler/testData/codegen/box/functions/coerceVoidToObject.kt +++ b/compiler/testData/codegen/box/functions/coerceVoidToObject.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun a(): String? = null fun b(): Nothing = throw Exception() diff --git a/compiler/testData/codegen/box/functions/invoke/kt3297.kt b/compiler/testData/codegen/box/functions/invoke/kt3297.kt index 6a18e736846..026ac7a3b37 100644 --- a/compiler/testData/codegen/box/functions/invoke/kt3297.kt +++ b/compiler/testData/codegen/box/functions/invoke/kt3297.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR //KT-3297 Calling the wrong function inside an extension method to the Function0 class infix fun Function0.or(alt: () -> R): R { diff --git a/compiler/testData/codegen/box/lazyCodegen/exceptionInFieldInitializer.kt b/compiler/testData/codegen/box/lazyCodegen/exceptionInFieldInitializer.kt index f6ad7b3753a..f086e0ca2ff 100644 --- a/compiler/testData/codegen/box/lazyCodegen/exceptionInFieldInitializer.kt +++ b/compiler/testData/codegen/box/lazyCodegen/exceptionInFieldInitializer.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class A(val p: String) { val prop: String = throw RuntimeException() } diff --git a/compiler/testData/codegen/box/lazyCodegen/tryCatchExpression.kt b/compiler/testData/codegen/box/lazyCodegen/tryCatchExpression.kt index 013c7cb0e1a..8617a79e1cf 100644 --- a/compiler/testData/codegen/box/lazyCodegen/tryCatchExpression.kt +++ b/compiler/testData/codegen/box/lazyCodegen/tryCatchExpression.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class A { val p : Int = try{ 1 diff --git a/compiler/testData/codegen/box/operatorConventions/overloadedSet.kt b/compiler/testData/codegen/box/operatorConventions/overloadedSet.kt index e8364c3faa2..839722da16a 100644 --- a/compiler/testData/codegen/box/operatorConventions/overloadedSet.kt +++ b/compiler/testData/codegen/box/operatorConventions/overloadedSet.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR object A { operator fun get(i: Int) = 1 operator fun set(i: Int, j: Int) {} diff --git a/compiler/testData/codegen/box/operatorConventions/remAssignmentOperation.kt b/compiler/testData/codegen/box/operatorConventions/remAssignmentOperation.kt index 828d600c92e..b0c2bf060c3 100644 --- a/compiler/testData/codegen/box/operatorConventions/remAssignmentOperation.kt +++ b/compiler/testData/codegen/box/operatorConventions/remAssignmentOperation.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class A() { var x = 5 } diff --git a/compiler/testData/codegen/box/operatorConventions/remOverModOperation.kt b/compiler/testData/codegen/box/operatorConventions/remOverModOperation.kt index a0058a194fb..f10fe021e65 100644 --- a/compiler/testData/codegen/box/operatorConventions/remOverModOperation.kt +++ b/compiler/testData/codegen/box/operatorConventions/remOverModOperation.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class A() { var x = 5 diff --git a/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/boxedEqPrimitiveEvaluationOrder.kt b/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/boxedEqPrimitiveEvaluationOrder.kt index 2317d10c7e8..5fd58629899 100644 --- a/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/boxedEqPrimitiveEvaluationOrder.kt +++ b/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/boxedEqPrimitiveEvaluationOrder.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR var order: String = "" fun a(i: Int): Int? { diff --git a/compiler/testData/codegen/box/primitiveTypes/nullAsNullableIntIsNull.kt b/compiler/testData/codegen/box/primitiveTypes/nullAsNullableIntIsNull.kt index c34d9d29c51..a9273088e10 100644 --- a/compiler/testData/codegen/box/primitiveTypes/nullAsNullableIntIsNull.kt +++ b/compiler/testData/codegen/box/primitiveTypes/nullAsNullableIntIsNull.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { try { if ((null as Int?)!! == 10) return "Fail #1" diff --git a/compiler/testData/codegen/box/properties/privatePropertyInConstructor.kt b/compiler/testData/codegen/box/properties/privatePropertyInConstructor.kt index 7968e63d7ac..9a9e186c8de 100644 --- a/compiler/testData/codegen/box/properties/privatePropertyInConstructor.kt +++ b/compiler/testData/codegen/box/properties/privatePropertyInConstructor.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class A( private val x: String, private var y: Double diff --git a/compiler/testData/codegen/box/regressions/kt18779.kt b/compiler/testData/codegen/box/regressions/kt18779.kt index 569d4f4f28f..986fc495998 100644 --- a/compiler/testData/codegen/box/regressions/kt18779.kt +++ b/compiler/testData/codegen/box/regressions/kt18779.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR sealed class Result { class Failure(val exception: Exception) : Result() class Success(val message: String) : Result() diff --git a/compiler/testData/codegen/box/regressions/kt3107.kt b/compiler/testData/codegen/box/regressions/kt3107.kt index cd09275c651..851d6931058 100644 --- a/compiler/testData/codegen/box/regressions/kt3107.kt +++ b/compiler/testData/codegen/box/regressions/kt3107.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun foo(): String { val s = try { "OK" diff --git a/compiler/testData/codegen/box/secondaryConstructors/withNonLocalReturn.kt b/compiler/testData/codegen/box/secondaryConstructors/withNonLocalReturn.kt index 782f44ba4e5..0b0be6bbbac 100644 --- a/compiler/testData/codegen/box/secondaryConstructors/withNonLocalReturn.kt +++ b/compiler/testData/codegen/box/secondaryConstructors/withNonLocalReturn.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR inline fun run(block: () -> Unit) = block() class A { diff --git a/compiler/testData/codegen/box/smartCasts/kt17725.kt b/compiler/testData/codegen/box/smartCasts/kt17725.kt index 8f2c5c2b8a4..71334c4f85b 100644 --- a/compiler/testData/codegen/box/smartCasts/kt17725.kt +++ b/compiler/testData/codegen/box/smartCasts/kt17725.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class Bob { fun Bob.bar() = "OK" } diff --git a/compiler/testData/codegen/box/smartCasts/kt19100.kt b/compiler/testData/codegen/box/smartCasts/kt19100.kt index fa265d0ade1..43113a91d5e 100644 --- a/compiler/testData/codegen/box/smartCasts/kt19100.kt +++ b/compiler/testData/codegen/box/smartCasts/kt19100.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR open class KFoo { fun foo(): String { if (this is KFooQux) return qux diff --git a/compiler/testData/codegen/box/traits/diamondPropertyAccessors.kt b/compiler/testData/codegen/box/traits/diamondPropertyAccessors.kt index e720a839609..e1c4d7a6b36 100644 --- a/compiler/testData/codegen/box/traits/diamondPropertyAccessors.kt +++ b/compiler/testData/codegen/box/traits/diamondPropertyAccessors.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR interface A { var bar: Boolean get() = false diff --git a/compiler/testData/codegen/box/typeMapping/kt2831.kt b/compiler/testData/codegen/box/typeMapping/kt2831.kt index 35906bad77c..3ead49d90ad 100644 --- a/compiler/testData/codegen/box/typeMapping/kt2831.kt +++ b/compiler/testData/codegen/box/typeMapping/kt2831.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // Exception in thread "main" java.lang.VerifyError: (class: org/jetbrains/kannotator/controlFlowBuilder/GraphBuilderInterpreter, method: binaryOperation signature: (Lorg/objectweb/asm/tree/AbstractInsnNode;Lorg/jetbrains/kannotator/controlFlowBuilder/AsmPossibleValues;Lorg/jetbrains/kannotator/controlFlowBuilder/AsmPossibleValues;)Lorg/jetbrains/kannotator/controlFlowBuilder/AsmPossibleValues;) Wrong return type in function fun foo(): Nothing = throw Exception() diff --git a/compiler/testData/codegen/box/typeMapping/kt3286.kt b/compiler/testData/codegen/box/typeMapping/kt3286.kt index f7ecdbf0d71..8d5c36246f9 100644 --- a/compiler/testData/codegen/box/typeMapping/kt3286.kt +++ b/compiler/testData/codegen/box/typeMapping/kt3286.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun test(x: Int): String = when(x) { 0 -> "zero" 1 -> "one" diff --git a/compiler/testData/codegen/box/when/exceptionOnNoMatch.kt b/compiler/testData/codegen/box/when/exceptionOnNoMatch.kt index 3537a4e2bdf..15a1b759082 100644 --- a/compiler/testData/codegen/box/when/exceptionOnNoMatch.kt +++ b/compiler/testData/codegen/box/when/exceptionOnNoMatch.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun isZero(x: Int) = when(x) { 0 -> true else -> throw Exception() diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt index d8b7a752612..a4cffc30e40 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/kt8948.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt index fab1c12c77e..7a0be75b0a4 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt index 5c0bf1f47cc..32d8b0ebec0 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/finallyInFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt index a582b29879b..6d8641272e2 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/callSite/wrongVarInterval.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt index cf63fffd5c6..8ea6a0004ac 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt index 1f47c93c1c0..8b4b28414fe 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/finallyInFinally2.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt index 3f15a5f091d..a57aa8087e6 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturn.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt index c3d45fdeeb1..7baefdcce3b 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt index d9975c37df5..5f930d23e92 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex2.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt index 22a4fcb6574..90cfc9e8785 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex3.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt index c0a4008e54d..3b507b537bd 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/chained/intReturnComplex4.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt index 2301586e934..08e00e74ef2 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturn.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt index 3bdfd196c0b..4392856e92c 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/intReturnComplex.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt index 3115bb330cf..d6beb7eaf5c 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/nested.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt index 05b308df64f..11e1e00e537 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt index d87881d7286..9c81bdedc71 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTry.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt index fb625ad7a54..5e943261554 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/returnInTryAndFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt index ef2aded6a5b..4dd77538331 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTry.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt index 8624e27900c..49acaa70b09 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/severalInTryComplex.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt index 65b9c44df82..924358c4462 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidInlineFun.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt index 4dbeab4f56b..3cb24c35d54 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/declSite/voidNonLocal.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt index 0e656b8f702..1458ab657d3 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternal.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt index 28cb714c30b..e97c1169949 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalNested.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt index 6f1bece140d..61ba24ab136 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/innerAndExternalSimple.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt index 73af42ab457..e6278519e69 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nested.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt index 487622a129c..6539f8bc4bc 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturns.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt index fa30c41bb1c..91cf72d4f98 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/nestedWithReturnsSimple.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt index e70c34c225d..81b70d478dd 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/noFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt index 9dfe595cb60..40ecb0de2d4 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/exceptionTable/synchonized.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt index 1b4ed0584b8..c5fa8d206bb 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/kt7273.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt inline fun test(s: () -> R): R { diff --git a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt index 667443692d4..90ad2de9c7c 100644 --- a/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt +++ b/compiler/testData/codegen/boxInline/nonLocalReturns/tryFinally/nonLocalReturnFromOuterLambda.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // FILE: 1.kt package test diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/BoxJsTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/BoxJsTestGenerated.java index 7ce256f063a..6a779bb9476 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/BoxJsTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/BoxJsTestGenerated.java @@ -2981,6 +2981,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest { runTest("js/js.translator/testData/box/expression/try/multipleCatchBlocks.kt"); } + @TestMetadata("nestedTryCatchInCatch.kt") + public void testNestedTryCatchInCatch() throws Exception { + runTest("js/js.translator/testData/box/expression/try/nestedTryCatchInCatch.kt"); + } + @TestMetadata("rethrowExceptionIfNotCaught.kt") public void testRethrowExceptionIfNotCaught() throws Exception { runTest("js/js.translator/testData/box/expression/try/rethrowExceptionIfNotCaught.kt"); diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrBoxJsTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrBoxJsTestGenerated.java index 410c6262e30..43d6440803c 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrBoxJsTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrBoxJsTestGenerated.java @@ -2981,6 +2981,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest { runTest("js/js.translator/testData/box/expression/try/multipleCatchBlocks.kt"); } + @TestMetadata("nestedTryCatchInCatch.kt") + public void testNestedTryCatchInCatch() throws Exception { + runTest("js/js.translator/testData/box/expression/try/nestedTryCatchInCatch.kt"); + } + @TestMetadata("rethrowExceptionIfNotCaught.kt") public void testRethrowExceptionIfNotCaught() throws Exception { runTest("js/js.translator/testData/box/expression/try/rethrowExceptionIfNotCaught.kt"); diff --git a/js/js.translator/testData/box/callableReference/property/delegated.kt b/js/js.translator/testData/box/callableReference/property/delegated.kt index 1b765babf55..e88e2ff0463 100644 --- a/js/js.translator/testData/box/callableReference/property/delegated.kt +++ b/js/js.translator/testData/box/callableReference/property/delegated.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1126 // This test was adapted from compiler/testData/codegen/box/callableReference/property/. package foo diff --git a/js/js.translator/testData/box/coercion/tryWithEmptyCatch.kt b/js/js.translator/testData/box/coercion/tryWithEmptyCatch.kt index ace25c28a1b..667402bd115 100644 --- a/js/js.translator/testData/box/coercion/tryWithEmptyCatch.kt +++ b/js/js.translator/testData/box/coercion/tryWithEmptyCatch.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 fun test(x: Int): Any { return try { diff --git a/js/js.translator/testData/box/expression/cast/castToFunction.kt b/js/js.translator/testData/box/expression/cast/castToFunction.kt index a0fdedb1caf..3e7e00adfb9 100644 --- a/js/js.translator/testData/box/expression/cast/castToFunction.kt +++ b/js/js.translator/testData/box/expression/cast/castToFunction.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1122 package foo diff --git a/js/js.translator/testData/box/expression/cast/castToGenericType.kt b/js/js.translator/testData/box/expression/cast/castToGenericType.kt index 7aa559d50bd..6b49951e573 100644 --- a/js/js.translator/testData/box/expression/cast/castToGenericType.kt +++ b/js/js.translator/testData/box/expression/cast/castToGenericType.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1126 package foo diff --git a/js/js.translator/testData/box/expression/cast/castToGenericTypeWithMultipleUpperBounds.kt b/js/js.translator/testData/box/expression/cast/castToGenericTypeWithMultipleUpperBounds.kt index ee503b40410..206867cc16c 100644 --- a/js/js.translator/testData/box/expression/cast/castToGenericTypeWithMultipleUpperBounds.kt +++ b/js/js.translator/testData/box/expression/cast/castToGenericTypeWithMultipleUpperBounds.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1150 package foo diff --git a/js/js.translator/testData/box/expression/cast/castToGenericTypeWithUpperBound.kt b/js/js.translator/testData/box/expression/cast/castToGenericTypeWithUpperBound.kt index 1d81790b8ae..e8470d119b4 100644 --- a/js/js.translator/testData/box/expression/cast/castToGenericTypeWithUpperBound.kt +++ b/js/js.translator/testData/box/expression/cast/castToGenericTypeWithUpperBound.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1144 package foo diff --git a/js/js.translator/testData/box/expression/cast/castToNotNull.kt b/js/js.translator/testData/box/expression/cast/castToNotNull.kt index 8805afa9a20..77cb668c034 100644 --- a/js/js.translator/testData/box/expression/cast/castToNotNull.kt +++ b/js/js.translator/testData/box/expression/cast/castToNotNull.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1127 package foo diff --git a/js/js.translator/testData/box/expression/cast/castToNullable.kt b/js/js.translator/testData/box/expression/cast/castToNullable.kt index 758ae24cb2e..2365f153d7a 100644 --- a/js/js.translator/testData/box/expression/cast/castToNullable.kt +++ b/js/js.translator/testData/box/expression/cast/castToNullable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1126 package foo diff --git a/js/js.translator/testData/box/expression/cast/reifiedToNotNull.kt b/js/js.translator/testData/box/expression/cast/reifiedToNotNull.kt index eaec450e1e9..4ebcaaa43b9 100644 --- a/js/js.translator/testData/box/expression/cast/reifiedToNotNull.kt +++ b/js/js.translator/testData/box/expression/cast/reifiedToNotNull.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1124 package foo diff --git a/js/js.translator/testData/box/expression/cast/reifiedToNullable1.kt b/js/js.translator/testData/box/expression/cast/reifiedToNullable1.kt index 096f1a99bd3..53ad90d572e 100644 --- a/js/js.translator/testData/box/expression/cast/reifiedToNullable1.kt +++ b/js/js.translator/testData/box/expression/cast/reifiedToNullable1.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1123 package foo diff --git a/js/js.translator/testData/box/expression/cast/reifiedToNullable2.kt b/js/js.translator/testData/box/expression/cast/reifiedToNullable2.kt index 4cc7cda6697..fa7389b8ad5 100644 --- a/js/js.translator/testData/box/expression/cast/reifiedToNullable2.kt +++ b/js/js.translator/testData/box/expression/cast/reifiedToNullable2.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1123 package foo diff --git a/js/js.translator/testData/box/expression/cast/safeCastToGenericTypeWithUpperBound.kt b/js/js.translator/testData/box/expression/cast/safeCastToGenericTypeWithUpperBound.kt index c4ecdb8d9fd..72dbeaca408 100644 --- a/js/js.translator/testData/box/expression/cast/safeCastToGenericTypeWithUpperBound.kt +++ b/js/js.translator/testData/box/expression/cast/safeCastToGenericTypeWithUpperBound.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1134 package foo diff --git a/js/js.translator/testData/box/expression/cast/safeCastToNotNull.kt b/js/js.translator/testData/box/expression/cast/safeCastToNotNull.kt index daf951ffb39..01c5da28660 100644 --- a/js/js.translator/testData/box/expression/cast/safeCastToNotNull.kt +++ b/js/js.translator/testData/box/expression/cast/safeCastToNotNull.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1116 package foo diff --git a/js/js.translator/testData/box/expression/cast/safeCastToNullable.kt b/js/js.translator/testData/box/expression/cast/safeCastToNullable.kt index d77816266c9..637064adc4d 100644 --- a/js/js.translator/testData/box/expression/cast/safeCastToNullable.kt +++ b/js/js.translator/testData/box/expression/cast/safeCastToNullable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1116 package foo diff --git a/js/js.translator/testData/box/expression/cast/safeCastToReifiedNotNull.kt b/js/js.translator/testData/box/expression/cast/safeCastToReifiedNotNull.kt index f1ad41dc10f..e3bfc0ca477 100644 --- a/js/js.translator/testData/box/expression/cast/safeCastToReifiedNotNull.kt +++ b/js/js.translator/testData/box/expression/cast/safeCastToReifiedNotNull.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1116 package foo diff --git a/js/js.translator/testData/box/expression/cast/safeCastToReifiedNullable.kt b/js/js.translator/testData/box/expression/cast/safeCastToReifiedNullable.kt index 4fd080ddf4d..4d8e242fb2c 100644 --- a/js/js.translator/testData/box/expression/cast/safeCastToReifiedNullable.kt +++ b/js/js.translator/testData/box/expression/cast/safeCastToReifiedNullable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1116 package foo diff --git a/js/js.translator/testData/box/expression/evaluationOrder/andAndWithSideEffect.kt b/js/js.translator/testData/box/expression/evaluationOrder/andAndWithSideEffect.kt index b5509bc2547..189d4143c8f 100644 --- a/js/js.translator/testData/box/expression/evaluationOrder/andAndWithSideEffect.kt +++ b/js/js.translator/testData/box/expression/evaluationOrder/andAndWithSideEffect.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/expression/evaluationOrder/assignToDotQualifiedWithSideEffect.kt b/js/js.translator/testData/box/expression/evaluationOrder/assignToDotQualifiedWithSideEffect.kt index 7b0faf0eb6e..a2b09b53d56 100644 --- a/js/js.translator/testData/box/expression/evaluationOrder/assignToDotQualifiedWithSideEffect.kt +++ b/js/js.translator/testData/box/expression/evaluationOrder/assignToDotQualifiedWithSideEffect.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1116 package foo diff --git a/js/js.translator/testData/box/expression/evaluationOrder/callArgs.kt b/js/js.translator/testData/box/expression/evaluationOrder/callArgs.kt index 893543fb93f..b76c989f97b 100644 --- a/js/js.translator/testData/box/expression/evaluationOrder/callArgs.kt +++ b/js/js.translator/testData/box/expression/evaluationOrder/callArgs.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1124 package foo diff --git a/js/js.translator/testData/box/expression/evaluationOrder/deepExpression.kt b/js/js.translator/testData/box/expression/evaluationOrder/deepExpression.kt index 9b106dfbf13..baf56aabb20 100644 --- a/js/js.translator/testData/box/expression/evaluationOrder/deepExpression.kt +++ b/js/js.translator/testData/box/expression/evaluationOrder/deepExpression.kt @@ -7,12 +7,15 @@ fun bar(s: String) { global += s } -fun foo(s: String):String { +fun foo(s: String): String { return s + "F" } open class A(val s: String) { - fun me():A { global += s; return this } + fun me(): A { + global += s; return this + } + open val f = "A" } @@ -22,33 +25,50 @@ class B(s: String) : A(s) { fun test(b1: Boolean, b2: Boolean): String { global = "" - bar(foo("G") + foo((if (b1) { - bar("then1") - (if (b2) { - bar("then2") - A("X") - } else { - bar("else2") - B("Y") - }).me() - } else { - bar("else1") - (if (b2) { - bar("then3") - B("M") - } else { - bar("else3") - A("N") - }).me() - }).f) + foo("S")) + try { + bar( + foo("G") + foo( + (if (b1) { + bar("then1") + (try { + if (b2) { + bar("then2") + A("X") + } else { + bar("else2") + B("Y") + } + } finally { + + }).me() + } else { + try { + bar("try3") + bar("else1") + } finally { + + } + (if (b2) { + bar("then3") + B("M") + } else { + bar("else3") + A("N") + }).me() + }).f + ) + foo("S") + ) + } finally { + + } return global } fun box(): String { - assertEquals(test(false, false), "else1else3NGFAFSF") - assertEquals(test(false, true), "else1then3MGFBFSF") + assertEquals(test(false, false), "try3else1else3NGFAFSF") + assertEquals(test(false, true), "try3else1then3MGFBFSF") assertEquals(test(true, false), "then1else2YGFBFSF") assertEquals(test(true, true), "then1then2XGFAFSF") return "OK" diff --git a/js/js.translator/testData/box/expression/evaluationOrder/elvisComplex.kt b/js/js.translator/testData/box/expression/evaluationOrder/elvisComplex.kt index 399bd155b83..d250465d0d8 100644 --- a/js/js.translator/testData/box/expression/evaluationOrder/elvisComplex.kt +++ b/js/js.translator/testData/box/expression/evaluationOrder/elvisComplex.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1118 package foo diff --git a/js/js.translator/testData/box/expression/evaluationOrder/equalsIntrinsicWithSideEffect.kt b/js/js.translator/testData/box/expression/evaluationOrder/equalsIntrinsicWithSideEffect.kt index 4985b9ff834..7f50c32447e 100644 --- a/js/js.translator/testData/box/expression/evaluationOrder/equalsIntrinsicWithSideEffect.kt +++ b/js/js.translator/testData/box/expression/evaluationOrder/equalsIntrinsicWithSideEffect.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/expression/evaluationOrder/ifWithComplex.kt b/js/js.translator/testData/box/expression/evaluationOrder/ifWithComplex.kt index e8d65439d39..4dc2e77cf2f 100644 --- a/js/js.translator/testData/box/expression/evaluationOrder/ifWithComplex.kt +++ b/js/js.translator/testData/box/expression/evaluationOrder/ifWithComplex.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/expression/evaluationOrder/intrinsicComplex.kt b/js/js.translator/testData/box/expression/evaluationOrder/intrinsicComplex.kt index 362d33cbc4b..1202a3a358b 100644 --- a/js/js.translator/testData/box/expression/evaluationOrder/intrinsicComplex.kt +++ b/js/js.translator/testData/box/expression/evaluationOrder/intrinsicComplex.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 package foo diff --git a/js/js.translator/testData/box/expression/evaluationOrder/orOrWithSideEffect.kt b/js/js.translator/testData/box/expression/evaluationOrder/orOrWithSideEffect.kt index 624796c928d..e483c92cf6c 100644 --- a/js/js.translator/testData/box/expression/evaluationOrder/orOrWithSideEffect.kt +++ b/js/js.translator/testData/box/expression/evaluationOrder/orOrWithSideEffect.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/expression/evaluationOrder/whenWithComplexConditions.kt b/js/js.translator/testData/box/expression/evaluationOrder/whenWithComplexConditions.kt index b060498f04c..34055782084 100644 --- a/js/js.translator/testData/box/expression/evaluationOrder/whenWithComplexConditions.kt +++ b/js/js.translator/testData/box/expression/evaluationOrder/whenWithComplexConditions.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/expression/if/ifElseAsExpressionWithThrow.kt b/js/js.translator/testData/box/expression/if/ifElseAsExpressionWithThrow.kt index 84e403e3e7b..c6e2c5dd293 100644 --- a/js/js.translator/testData/box/expression/if/ifElseAsExpressionWithThrow.kt +++ b/js/js.translator/testData/box/expression/if/ifElseAsExpressionWithThrow.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1109 package foo diff --git a/js/js.translator/testData/box/expression/if/nestedIf.kt b/js/js.translator/testData/box/expression/if/nestedIf.kt index 237ba118444..b5c974d016c 100644 --- a/js/js.translator/testData/box/expression/if/nestedIf.kt +++ b/js/js.translator/testData/box/expression/if/nestedIf.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 // JS: generate wrong code for nested if // http://youtrack.jetbrains.com/issue/KT-5576 diff --git a/js/js.translator/testData/box/expression/misc/elvisWithThrow.kt b/js/js.translator/testData/box/expression/misc/elvisWithThrow.kt index 3384855f886..be170dfdcbd 100644 --- a/js/js.translator/testData/box/expression/misc/elvisWithThrow.kt +++ b/js/js.translator/testData/box/expression/misc/elvisWithThrow.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1116 package foo diff --git a/js/js.translator/testData/box/expression/misc/exclExclThrows.kt b/js/js.translator/testData/box/expression/misc/exclExclThrows.kt index e0b6f48c740..86798d76881 100644 --- a/js/js.translator/testData/box/expression/misc/exclExclThrows.kt +++ b/js/js.translator/testData/box/expression/misc/exclExclThrows.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1109 package foo diff --git a/js/js.translator/testData/box/expression/try/multipleCatchBlocks.kt b/js/js.translator/testData/box/expression/try/multipleCatchBlocks.kt index 7f1a628ddb6..6e7b288821c 100644 --- a/js/js.translator/testData/box/expression/try/multipleCatchBlocks.kt +++ b/js/js.translator/testData/box/expression/try/multipleCatchBlocks.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1118 package foo diff --git a/js/js.translator/testData/box/expression/try/nestedTryCatchInCatch.kt b/js/js.translator/testData/box/expression/try/nestedTryCatchInCatch.kt new file mode 100644 index 00000000000..53a8891555d --- /dev/null +++ b/js/js.translator/testData/box/expression/try/nestedTryCatchInCatch.kt @@ -0,0 +1,26 @@ +// EXPECTED_REACHABLE_NODES: 1113 +package foo + +class Ex1(val s: String) : Exception() +class Ex2(val x: Ex1) : Exception() + +fun box(): String { + + var s: String = "" + + try { + throw Ex1("OK") + } catch (e: RuntimeException) { + s = "Failed1" + } catch (e: Ex1) { + try { + throw Ex2(e) + } catch (r: RuntimeException) { + s = "Failed2" + } catch (ex: Ex2){ + s = ex.x.s + } + } + + return s +} \ No newline at end of file diff --git a/js/js.translator/testData/box/expression/try/rethrowExceptionIfNotCaught.kt b/js/js.translator/testData/box/expression/try/rethrowExceptionIfNotCaught.kt index 3d5be43b907..e9c42c580da 100644 --- a/js/js.translator/testData/box/expression/try/rethrowExceptionIfNotCaught.kt +++ b/js/js.translator/testData/box/expression/try/rethrowExceptionIfNotCaught.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 package foo diff --git a/js/js.translator/testData/box/expression/try/tryCatchCorrectForSubclasses.kt b/js/js.translator/testData/box/expression/try/tryCatchCorrectForSubclasses.kt index 3b3d1e5a48f..648ce00603f 100644 --- a/js/js.translator/testData/box/expression/try/tryCatchCorrectForSubclasses.kt +++ b/js/js.translator/testData/box/expression/try/tryCatchCorrectForSubclasses.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1122 package foo diff --git a/js/js.translator/testData/box/expression/try/tryCatchDynamic.kt b/js/js.translator/testData/box/expression/try/tryCatchDynamic.kt index 5205a532fa0..b8bd431bdce 100644 --- a/js/js.translator/testData/box/expression/try/tryCatchDynamic.kt +++ b/js/js.translator/testData/box/expression/try/tryCatchDynamic.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1113 package foo diff --git a/js/js.translator/testData/box/expression/try/tryCatchExpr.kt b/js/js.translator/testData/box/expression/try/tryCatchExpr.kt index 3d3ceaec4da..f517b3b2a1c 100644 --- a/js/js.translator/testData/box/expression/try/tryCatchExpr.kt +++ b/js/js.translator/testData/box/expression/try/tryCatchExpr.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1113 package foo @@ -9,11 +8,11 @@ fun box(): String { res = try { 10 } catch(e: Exception) { 20 } finally { 80 } assertEquals(10, res) - res = try { 10; throw RuntimeException() } catch(e: Exception) { 20 } - assertEquals(20, res) + res = try { 10; throw RuntimeException() } catch(e: Exception) { 30 } + assertEquals(30, res) - res = try { 10; throw RuntimeException() } catch(e: Exception) { 20 } finally { 100 } - assertEquals(20, res) + res = try { 10; throw RuntimeException() } catch(e: Exception) { 40 } finally { 100 } + assertEquals(40, res) res = 50 + try { 10 } catch(e: Exception) { 20 } assertEquals(60, res) diff --git a/js/js.translator/testData/box/expression/try/tryCatchExpressionWithMessage.kt b/js/js.translator/testData/box/expression/try/tryCatchExpressionWithMessage.kt index 6606c069c80..92425615b06 100644 --- a/js/js.translator/testData/box/expression/try/tryCatchExpressionWithMessage.kt +++ b/js/js.translator/testData/box/expression/try/tryCatchExpressionWithMessage.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/expression/try/tryCatchThrowable.kt b/js/js.translator/testData/box/expression/try/tryCatchThrowable.kt index 6ed6e376905..3a0e83bbb7a 100644 --- a/js/js.translator/testData/box/expression/try/tryCatchThrowable.kt +++ b/js/js.translator/testData/box/expression/try/tryCatchThrowable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1113 package foo diff --git a/js/js.translator/testData/box/expression/try/tryCatchWithDifferentParameterNames.kt b/js/js.translator/testData/box/expression/try/tryCatchWithDifferentParameterNames.kt index e7654b7b90a..007874a88bb 100644 --- a/js/js.translator/testData/box/expression/try/tryCatchWithDifferentParameterNames.kt +++ b/js/js.translator/testData/box/expression/try/tryCatchWithDifferentParameterNames.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/expression/when/ifInWhen.kt b/js/js.translator/testData/box/expression/when/ifInWhen.kt index bb531d8eae5..d4554606749 100644 --- a/js/js.translator/testData/box/expression/when/ifInWhen.kt +++ b/js/js.translator/testData/box/expression/when/ifInWhen.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1111 // KT-2221 if in when diff --git a/js/js.translator/testData/box/expression/when/ifInWhenDanglingElseIssue.kt b/js/js.translator/testData/box/expression/when/ifInWhenDanglingElseIssue.kt index 35f481ca946..ff7cd4be870 100644 --- a/js/js.translator/testData/box/expression/when/ifInWhenDanglingElseIssue.kt +++ b/js/js.translator/testData/box/expression/when/ifInWhenDanglingElseIssue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1111 // http://youtrack.jetbrains.com/issue/KT-5253 // JS: generated wrong code when use `if` inside `when` diff --git a/js/js.translator/testData/box/expression/when/whenAsExpressionWithThrow.kt b/js/js.translator/testData/box/expression/when/whenAsExpressionWithThrow.kt index 619488716b4..e5091fa6a0b 100644 --- a/js/js.translator/testData/box/expression/when/whenAsExpressionWithThrow.kt +++ b/js/js.translator/testData/box/expression/when/whenAsExpressionWithThrow.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1109 package foo diff --git a/js/js.translator/testData/box/expression/while/doWhileWithComplexCondition.kt b/js/js.translator/testData/box/expression/while/doWhileWithComplexCondition.kt index fd57551752a..033d5ae0341 100644 --- a/js/js.translator/testData/box/expression/while/doWhileWithComplexCondition.kt +++ b/js/js.translator/testData/box/expression/while/doWhileWithComplexCondition.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1113 package foo diff --git a/js/js.translator/testData/box/expression/while/doWhileWithComplexConditionAndContinue.kt b/js/js.translator/testData/box/expression/while/doWhileWithComplexConditionAndContinue.kt index b76b3d876ef..63f46a13459 100644 --- a/js/js.translator/testData/box/expression/while/doWhileWithComplexConditionAndContinue.kt +++ b/js/js.translator/testData/box/expression/while/doWhileWithComplexConditionAndContinue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1113 package foo diff --git a/js/js.translator/testData/box/expression/while/whileWithComplexCondition.kt b/js/js.translator/testData/box/expression/while/whileWithComplexCondition.kt index bd417f26c03..293103de0cd 100644 --- a/js/js.translator/testData/box/expression/while/whileWithComplexCondition.kt +++ b/js/js.translator/testData/box/expression/while/whileWithComplexCondition.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1113 package foo diff --git a/js/js.translator/testData/box/expression/while/whileWithComplexConditionAndContinue.kt b/js/js.translator/testData/box/expression/while/whileWithComplexConditionAndContinue.kt index 9f8048e247b..cc384777d89 100644 --- a/js/js.translator/testData/box/expression/while/whileWithComplexConditionAndContinue.kt +++ b/js/js.translator/testData/box/expression/while/whileWithComplexConditionAndContinue.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1113 package foo diff --git a/js/js.translator/testData/box/expression/while/whileWithComplexOneStatement.kt b/js/js.translator/testData/box/expression/while/whileWithComplexOneStatement.kt index 48528946f60..4821c470787 100644 --- a/js/js.translator/testData/box/expression/while/whileWithComplexOneStatement.kt +++ b/js/js.translator/testData/box/expression/while/whileWithComplexOneStatement.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 package foo diff --git a/js/js.translator/testData/box/initialize/complexTopLevelPropertyInitializer.kt b/js/js.translator/testData/box/initialize/complexTopLevelPropertyInitializer.kt index a54acf5e63b..dce080bf85e 100644 --- a/js/js.translator/testData/box/initialize/complexTopLevelPropertyInitializer.kt +++ b/js/js.translator/testData/box/initialize/complexTopLevelPropertyInitializer.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 package foo diff --git a/js/js.translator/testData/box/initialize/declarationInitializedWithThrow.kt b/js/js.translator/testData/box/initialize/declarationInitializedWithThrow.kt index b5ef06a29bc..ff06b33885b 100644 --- a/js/js.translator/testData/box/initialize/declarationInitializedWithThrow.kt +++ b/js/js.translator/testData/box/initialize/declarationInitializedWithThrow.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 // See KT-12254 package foo diff --git a/js/js.translator/testData/box/inlineEvaluationOrder/doWhile.kt b/js/js.translator/testData/box/inlineEvaluationOrder/doWhile.kt index 3397cdc686c..bd65f0aff4a 100644 --- a/js/js.translator/testData/box/inlineEvaluationOrder/doWhile.kt +++ b/js/js.translator/testData/box/inlineEvaluationOrder/doWhile.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1115 package foo diff --git a/js/js.translator/testData/box/inlineEvaluationOrder/doWhileComplex.kt b/js/js.translator/testData/box/inlineEvaluationOrder/doWhileComplex.kt index 7fc3678aec6..96f00a43166 100644 --- a/js/js.translator/testData/box/inlineEvaluationOrder/doWhileComplex.kt +++ b/js/js.translator/testData/box/inlineEvaluationOrder/doWhileComplex.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1116 package foo diff --git a/js/js.translator/testData/box/inlineEvaluationOrder/while.kt b/js/js.translator/testData/box/inlineEvaluationOrder/while.kt index ae7f4a8b82a..b7bcae9685a 100644 --- a/js/js.translator/testData/box/inlineEvaluationOrder/while.kt +++ b/js/js.translator/testData/box/inlineEvaluationOrder/while.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1115 package foo diff --git a/js/js.translator/testData/box/inlineEvaluationOrder/whileComplex.kt b/js/js.translator/testData/box/inlineEvaluationOrder/whileComplex.kt index bd177325eee..8df26b19999 100644 --- a/js/js.translator/testData/box/inlineEvaluationOrder/whileComplex.kt +++ b/js/js.translator/testData/box/inlineEvaluationOrder/whileComplex.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1116 package foo diff --git a/js/js.translator/testData/box/inlineMultiFile/use.kt b/js/js.translator/testData/box/inlineMultiFile/use.kt index 118c07448d3..218d7a6eb6c 100644 --- a/js/js.translator/testData/box/inlineMultiFile/use.kt +++ b/js/js.translator/testData/box/inlineMultiFile/use.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1133 /* * Copy of JVM-backend test diff --git a/js/js.translator/testData/box/jsCode/tryCatchFinally.kt b/js/js.translator/testData/box/jsCode/tryCatchFinally.kt index 2ca6614298c..9e108b61f4a 100644 --- a/js/js.translator/testData/box/jsCode/tryCatchFinally.kt +++ b/js/js.translator/testData/box/jsCode/tryCatchFinally.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1119 package foo diff --git a/js/js.translator/testData/box/native/castToNativeClassChecked.kt b/js/js.translator/testData/box/native/castToNativeClassChecked.kt index 1e3d4e592af..80f1c23ebc0 100644 --- a/js/js.translator/testData/box/native/castToNativeClassChecked.kt +++ b/js/js.translator/testData/box/native/castToNativeClassChecked.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 // FILE: castToNativeClassChecked.kt external abstract class S() { diff --git a/js/js.translator/testData/box/native/castToNativeInterfaceChecked.kt b/js/js.translator/testData/box/native/castToNativeInterfaceChecked.kt index fdca197a4e1..177f4e4fee5 100644 --- a/js/js.translator/testData/box/native/castToNativeInterfaceChecked.kt +++ b/js/js.translator/testData/box/native/castToNativeInterfaceChecked.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1110 external interface I { fun foo(): String diff --git a/js/js.translator/testData/box/regression/kt2470.kt b/js/js.translator/testData/box/regression/kt2470.kt index 1d187fff68f..aff59eda4c7 100644 --- a/js/js.translator/testData/box/regression/kt2470.kt +++ b/js/js.translator/testData/box/regression/kt2470.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1109 // KT-2470 another name mangling bug: kotlin.test.failsWith() gets generated to invalid JS diff --git a/js/js.translator/testData/box/rtti/exceptionIsInterface.kt b/js/js.translator/testData/box/rtti/exceptionIsInterface.kt index 8b5ae6beb33..840d480ddb5 100644 --- a/js/js.translator/testData/box/rtti/exceptionIsInterface.kt +++ b/js/js.translator/testData/box/rtti/exceptionIsInterface.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 interface I