rra/ilgonmic/js-fun-import
[JS IR] Test import.meta syntax [JS IR] Add possibility to use import.meta [JS IR] Check if import function-like returns Promise [JS IR] Add test with import function syntax [JS IR] Allow import function-like in js function Merge-request: KT-MR-5948 Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com> ^KT-51125 fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// DONT_TARGET_EXACT_BACKEND: JS
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// ES_MODULES
|
||||
|
||||
fun box(): String {
|
||||
if (js("import('hello')") !is kotlin.js.Promise<*>) return "fail1"
|
||||
if (!js("import.meta").url) return "fail2"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user