diff --git a/libraries/stdlib/js-ir/runtime/coreRuntime.kt b/libraries/stdlib/js-ir/runtime/coreRuntime.kt index ff6c3db9c48..a65bef3d1f9 100644 --- a/libraries/stdlib/js-ir/runtime/coreRuntime.kt +++ b/libraries/stdlib/js-ir/runtime/coreRuntime.kt @@ -117,5 +117,10 @@ internal external class JsObject { } } +// Note: once some error-compilation design happened consider to distinguish a special exception for error-code. +internal fun errorCode(description: String): Nothing { + throw IllegalStateException(description) +} + internal fun boxIntrinsic(@Suppress("UNUSED_PARAMETER") x: T): R = error("Should be lowered") internal fun unboxIntrinsic(@Suppress("UNUSED_PARAMETER") x: T): R = error("Should be lowered")