[K/JS] test: add @file:JsExport tests for each @JsExport test + auto-generate TypeScript export tests.
This commit is contained in:
Vendored
+34
@@ -0,0 +1,34 @@
|
||||
// !OPT_IN: kotlin.js.ExperimentalJsExport
|
||||
// !RENDER_DIAGNOSTICS_MESSAGES
|
||||
@file:JsExport
|
||||
|
||||
package foo
|
||||
|
||||
fun <!NON_CONSUMABLE_EXPORTED_IDENTIFIER!>delete<!>() {}
|
||||
|
||||
val <!NON_CONSUMABLE_EXPORTED_IDENTIFIER!>instanceof<!> = 4
|
||||
|
||||
class <!NON_CONSUMABLE_EXPORTED_IDENTIFIER!>eval<!>
|
||||
|
||||
@JsName(<!NON_CONSUMABLE_EXPORTED_IDENTIFIER!>"await"<!>)
|
||||
fun foo() {}
|
||||
|
||||
@JsName(<!NON_CONSUMABLE_EXPORTED_IDENTIFIER!>"this"<!>)
|
||||
val bar = 4
|
||||
|
||||
@JsName(<!NON_CONSUMABLE_EXPORTED_IDENTIFIER!>"super"<!>)
|
||||
class Baz
|
||||
|
||||
class Test {
|
||||
fun instanceof() {}
|
||||
|
||||
@JsName("eval")
|
||||
fun test() {}
|
||||
}
|
||||
|
||||
object NaN
|
||||
|
||||
enum class Nums {
|
||||
Infinity,
|
||||
undefined
|
||||
}
|
||||
Reference in New Issue
Block a user