[K/Wasm] Allow to export unsigned numbers
This commit is contained in:
+1
-1
@@ -72,5 +72,5 @@ private fun isTypeSupportedInWasmInterop(
|
||||
}
|
||||
|
||||
// Primitive numbers and Boolean are supported
|
||||
return type.isPrimitive && !type.isChar
|
||||
return (type.isPrimitive && !type.isChar) || type.isUnsignedType
|
||||
}
|
||||
+1
-1
@@ -122,7 +122,7 @@ private fun isTypeSupportedInJsInterop(
|
||||
|
||||
val nonNullable = type.withNullability(ConeNullability.NOT_NULL, session.typeContext)
|
||||
|
||||
if (nonNullable.isPrimitive || nonNullable.isString) {
|
||||
if (nonNullable.isPrimitive || nonNullable.isUnsignedType || nonNullable.isString) {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user