From 7ba8f7cce219a6634d0b04b6ce4abd1bfec963e5 Mon Sep 17 00:00:00 2001 From: Svyatoslav Kuzmich Date: Wed, 19 Apr 2023 15:28:39 +0200 Subject: [PATCH] Revert "[Wasm] Deprecate @JsFun with warning" Reason: Design of js(code) replacement is still in flux. It would be better to delay deprecation until we converge to proper solution. This reverts commit 3566d918d29cf8e4baead28da3f8831599dea4c5. --- compiler/testData/diagnostics/wasmTests/jsInterop/jsFun.kt | 2 -- libraries/stdlib/wasm/src/kotlin/JsInterop.kt | 1 - 2 files changed, 3 deletions(-) diff --git a/compiler/testData/diagnostics/wasmTests/jsInterop/jsFun.kt b/compiler/testData/diagnostics/wasmTests/jsInterop/jsFun.kt index 2314d7e35f6..7ae2cad609e 100644 --- a/compiler/testData/diagnostics/wasmTests/jsInterop/jsFun.kt +++ b/compiler/testData/diagnostics/wasmTests/jsInterop/jsFun.kt @@ -1,5 +1,3 @@ -@file:Suppress("DEPRECATION") - @JsFun("() => {}") external fun topLevelExternalFun(): Unit diff --git a/libraries/stdlib/wasm/src/kotlin/JsInterop.kt b/libraries/stdlib/wasm/src/kotlin/JsInterop.kt index 4ea659c08cf..c2660e20681 100644 --- a/libraries/stdlib/wasm/src/kotlin/JsInterop.kt +++ b/libraries/stdlib/wasm/src/kotlin/JsInterop.kt @@ -17,7 +17,6 @@ package kotlin * * This is a temporary annotation because K/Wasm <-> JS interop is not designed yet. */ -@Deprecated("@JsFun annotation is deprecated, use `fun f() = js(\"code\")` instead.") @Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER) @Retention(AnnotationRetention.BINARY) public annotation class JsFun(val code: String) \ No newline at end of file