[JS IR] Fix IrGetClass for Throwable successors

- add test
This commit is contained in:
Roman Artemev
2019-11-26 23:52:50 +03:00
committed by romanart
parent 757ddd9179
commit 4759c16428
4 changed files with 24 additions and 1 deletions
@@ -42,7 +42,6 @@ class ClassReferenceLowering(val context: JsIrBackendContext) : FileLoweringPass
IrType::isDouble to "doubleClass",
IrType::isArray to "arrayClass",
IrType::isString to "stringClass",
IrType::isThrowable to "throwableClass",
IrType::isBooleanArray to "booleanArrayClass",
IrType::isCharArray to "charArrayClass",
IrType::isByteArray to "byteArrayClass",
@@ -60,6 +59,7 @@ class ClassReferenceLowering(val context: JsIrBackendContext) : FileLoweringPass
mapOf(
IrType::isAny to "anyClass",
IrType::isNumber to "numberClass",
IrType::isThrowable to "throwableClass",
IrType::isNothing to "nothingClass"
).mapValues {
primitiveClassProperty(it.value)