From 2c889f56fad8ce6eb496ec658a7e20efe20f09dd Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Tue, 4 Oct 2022 17:00:29 +0200 Subject: [PATCH] [K/JS] Add missed JsExport in the test, and uncomment part of it which passes with v8 #KT-41294 Fixed --- .../testData/box/crossModuleRefIR/crossModuleJsExport.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/js.translator/testData/box/crossModuleRefIR/crossModuleJsExport.kt b/js/js.translator/testData/box/crossModuleRefIR/crossModuleJsExport.kt index 71e7a8dd709..9b874943fce 100644 --- a/js/js.translator/testData/box/crossModuleRefIR/crossModuleJsExport.kt +++ b/js/js.translator/testData/box/crossModuleRefIR/crossModuleJsExport.kt @@ -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(); -} \ No newline at end of file +}