diff --git a/js/js.libraries/src/builtins/Enum.kt b/js/js.libraries/src/builtins/Enum.kt index 2c784361f70..8577a7eb5ec 100644 --- a/js/js.libraries/src/builtins/Enum.kt +++ b/js/js.libraries/src/builtins/Enum.kt @@ -16,7 +16,7 @@ package kotlin -class Enum> : Comparable> { +public class Enum> : Comparable> { @JsName("name$") private var _name: String = "" @JsName("ordinal$") private var _ordinal: Int = 0 diff --git a/js/js.libraries/src/builtins/hacks.kt b/js/js.libraries/src/builtins/hacks.kt index 109a3f391e0..97d3266a162 100644 --- a/js/js.libraries/src/builtins/hacks.kt +++ b/js/js.libraries/src/builtins/hacks.kt @@ -20,8 +20,8 @@ import kotlin.annotation.AnnotationTarget.* @Retention(AnnotationRetention.BINARY) @Target(CLASS, FUNCTION, PROPERTY, CONSTRUCTOR, PROPERTY_GETTER, PROPERTY_SETTER) -@native annotation class JsName(val name: String) +@native internal annotation class JsName(val name: String) -@native annotation class native +@native internal annotation class native -@native fun js(code: String): dynamic \ No newline at end of file +@native internal fun js(code: String): dynamic \ No newline at end of file diff --git a/js/js.libraries/src/core/exceptions.kt b/js/js.libraries/src/core/exceptions.kt index 3d01a7d0432..37719880df8 100644 --- a/js/js.libraries/src/core/exceptions.kt +++ b/js/js.libraries/src/core/exceptions.kt @@ -16,28 +16,28 @@ package kotlin -open class Error(message: String? = null) : Throwable(message, null) +public open class Error(message: String? = null) : Throwable(message, null) -open class Exception(message: String? = null) : Throwable(message, null) +public open class Exception(message: String? = null) : Throwable(message, null) -open class RuntimeException(message: String? = null) : Exception(message) +public open class RuntimeException(message: String? = null) : Exception(message) -open class IllegalArgumentException(message: String? = null) : RuntimeException(message) +public open class IllegalArgumentException(message: String? = null) : RuntimeException(message) -open class IllegalStateException(message: String? = null) : RuntimeException(message) +public open class IllegalStateException(message: String? = null) : RuntimeException(message) -open class IndexOutOfBoundsException(message: String? = null) : RuntimeException(message) +public open class IndexOutOfBoundsException(message: String? = null) : RuntimeException(message) -open class ConcurrentModificationException(message: String? = null) : RuntimeException(message) +public open class ConcurrentModificationException(message: String? = null) : RuntimeException(message) -open class UnsupportedOperationException(message: String? = null) : RuntimeException(message) +public open class UnsupportedOperationException(message: String? = null) : RuntimeException(message) -open class NumberFormatException(message: String? = null) : RuntimeException(message) +public open class NumberFormatException(message: String? = null) : RuntimeException(message) -open class NullPointerException(message: String? = null) : RuntimeException(message) +public open class NullPointerException(message: String? = null) : RuntimeException(message) -open class ClassCastException(message: String? = null) : RuntimeException(message) +public open class ClassCastException(message: String? = null) : RuntimeException(message) -open class AssertionError(message: String? = null) : Error(message) +public open class AssertionError(message: String? = null) : Error(message) -open class NoSuchElementException(message: String? = null) : Exception() +public open class NoSuchElementException(message: String? = null) : Exception() diff --git a/js/js.libraries/src/core/text.kt b/js/js.libraries/src/core/text.kt index 76023676bdf..32776d75542 100644 --- a/js/js.libraries/src/core/text.kt +++ b/js/js.libraries/src/core/text.kt @@ -17,13 +17,13 @@ package kotlin.text -interface Appendable { +public interface Appendable { fun append(csq: CharSequence?): Appendable fun append(csq: CharSequence?, start: Int, end: Int): Appendable fun append(c: Char): Appendable } -class StringBuilder(content: String = "") : Appendable, CharSequence { +public class StringBuilder(content: String = "") : Appendable, CharSequence { constructor(capacity: Int) : this() {} constructor(content: CharSequence) : this(content.toString()) {}