From 7f27ebc58971e48aa0c908c78f30d286a86c5feb Mon Sep 17 00:00:00 2001 From: Roman Artemev Date: Tue, 16 Nov 2021 13:26:42 +0300 Subject: [PATCH] [JS IR] Add API to js runtime to throw linkage errors --- libraries/stdlib/js-ir/runtime/unlinked.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libraries/stdlib/js-ir/runtime/unlinked.kt diff --git a/libraries/stdlib/js-ir/runtime/unlinked.kt b/libraries/stdlib/js-ir/runtime/unlinked.kt new file mode 100644 index 00000000000..9dfd65bf6e6 --- /dev/null +++ b/libraries/stdlib/js-ir/runtime/unlinked.kt @@ -0,0 +1,12 @@ +/* + * 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 + +internal class LinkageError(message: String?) : Error(message) + +internal fun throwLinkageError(message: String?): Nothing { + throw LinkageError(message) +} \ No newline at end of file