diff --git a/js/js.translator/testData/box/kotlin.test/_common.kt b/js/js.translator/testData/box/kotlin.test/_common.kt index eb8913ab570..cec5ded2b45 100644 --- a/js/js.translator/testData/box/kotlin.test/_common.kt +++ b/js/js.translator/testData/box/kotlin.test/_common.kt @@ -14,7 +14,10 @@ fun raise(name: String): Nothing { throw Exception(name) } +// Adapter should be initialized eagerly @Suppress("INVISIBLE_MEMBER") +@OptIn(kotlin.ExperimentalStdlibApi::class) +@JsEagerInitialization private val underscore = kotlin.test.setAdapter(object : FrameworkAdapter { override fun suite(name: String, ignored: Boolean, suiteFn: () -> Unit) { sortingContext.suite(name, ignored) { suiteFn() }