Converters
object Converters
The fixed table between Kotlin values and engine values. Nothing here uses reflection, so it works the same on every target.
Kotlin to JavaScript: null and Unit become undefined, Boolean stays, every number widens to Double, a Long outside the range JavaScript can hold exactly becomes a BigInt, any CharSequence becomes a String, and List, Array, Map and Set become the matching JavaScript objects. Anything already from the engine passes straight through.