[Wasm] Migrate usages of @JsFun to js("code")

This commit is contained in:
Svyatoslav Kuzmich
2023-01-14 15:19:25 +01:00
committed by Space Team
parent 7a04999e4a
commit 7175b9f31c
18 changed files with 303 additions and 297 deletions
+4 -4
View File
@@ -3,11 +3,11 @@ package test.js
import kotlin.js.*
import kotlin.test.*
@JsFun("async () => 'foo'")
internal external fun jsAsyncFoo(): Promise<Dynamic?>
internal fun jsAsyncFoo(): Promise<Dynamic?> =
js("(async () => 'foo')()")
@JsFun("() => 'foo'")
internal external fun jsFoo(): Dynamic
internal fun jsFoo(): Dynamic =
js("'foo'")
var state: Dynamic? = null