From 7c2ee414912292e5ef283a784552b7c8376015be Mon Sep 17 00:00:00 2001 From: Svyatoslav Kuzmich Date: Mon, 15 Apr 2019 18:32:03 +0300 Subject: [PATCH] [JS IR BE] Fix boolean companion object --- .../org/jetbrains/kotlin/ir/backend/js/JsIrBackendContext.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsIrBackendContext.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsIrBackendContext.kt index d5a73edef18..aaab7c944ff 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsIrBackendContext.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsIrBackendContext.kt @@ -148,7 +148,7 @@ class JsIrBackendContext( .filter { it.name != "LONG" && it.name != "CHAR" } // skip due to they have own explicit companions .map { it.typeName } - return numbers + listOf(Name.identifier("String")) + return numbers + listOf(Name.identifier("String"), Name.identifier("Boolean")) } val dynamicType: IrDynamicType = IrDynamicTypeImpl(null, emptyList(), Variance.INVARIANT)