[K/JS] Add missed JsExport in the test, and uncomment part of it which passes with v8

#KT-41294 Fixed
This commit is contained in:
Zalim Bashorov
2022-10-04 17:00:29 +02:00
parent 75510e6019
commit 2c889f56fa
@@ -7,6 +7,7 @@
// MODULE: lib0
// FILE: lib0.kt
@JsExport
class Dep {
fun bee() = "beedep"
}
@@ -77,11 +78,9 @@ function box() {
if (typeof dex !== "object") return "fail: " + dex;
// Note: the code below fails in j2v8 but works in Firefox. It should double-checked once test infra migrate from j2v8 to smth else
// Corresponding issue: KT-41294
// if (dex.bee() != "beedep") return "fail beedep";
if (dex.bee() != "beedep") return "fail beedep";
if (main.test() !== "OK") return "fail 1";
return kotlin_lib1.O() + kotlin_lib2.K();
}
}