From de7fa8c778fc2facd1403334d4d39f6dfdddf09d Mon Sep 17 00:00:00 2001 From: Svyatoslav Kuzmich Date: Wed, 8 Sep 2021 13:02:58 +0300 Subject: [PATCH] [Wasm][Stdlib] Add kotlin.js.JsExport annotation --- .../stdlib/wasm/src/kotlin/js/annotations.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libraries/stdlib/wasm/src/kotlin/js/annotations.kt diff --git a/libraries/stdlib/wasm/src/kotlin/js/annotations.kt b/libraries/stdlib/wasm/src/kotlin/js/annotations.kt new file mode 100644 index 00000000000..bb890f25b40 --- /dev/null +++ b/libraries/stdlib/wasm/src/kotlin/js/annotations.kt @@ -0,0 +1,16 @@ +/* + * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package kotlin.js + +/** + * Exports top-level declaration on JS platform. + * + * Can only be applied to top-level functions. + */ +@ExperimentalJsExport +@Retention(AnnotationRetention.BINARY) +@Target(AnnotationTarget.FUNCTION) +public actual annotation class JsExport \ No newline at end of file