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 3566d918d2.
This commit is contained in:
Svyatoslav Kuzmich
2023-04-19 15:28:39 +02:00
committed by teamcity
parent 7c2fa3290e
commit 7ba8f7cce2
2 changed files with 0 additions and 3 deletions
@@ -1,5 +1,3 @@
@file:Suppress("DEPRECATION")
@JsFun("() => {}")
external fun topLevelExternalFun(): Unit
@@ -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)