[Wasm] Run unit tests for the wasm stdlib (fail on verifier for now)

This commit is contained in:
Igor Laevsky
2021-10-28 15:41:55 +03:00
parent 36d9001d54
commit 22c161bcee
5 changed files with 125 additions and 1 deletions
@@ -1493,6 +1493,18 @@ public class Float private constructor(public val value: Float) : Number(), Comp
*/
@Suppress("DIVISION_BY_ZERO")
public val NaN: Float = 0.0f / 0.0f
/**
* The number of bytes used to represent an instance of Float in a binary form.
*/
@SinceKotlin("1.4")
public const val SIZE_BYTES: Int = 4
/**
* The number of bits used to represent an instance of Float in a binary form.
*/
@SinceKotlin("1.4")
public const val SIZE_BITS: Int = 32
}
/**
@@ -1801,6 +1813,18 @@ public class Double private constructor(public val value: Double) : Number(), Co
*/
@Suppress("DIVISION_BY_ZERO")
public val NaN: Double = 0.0 / 0.0
/**
* The number of bytes used to represent an instance of Double in a binary form.
*/
@SinceKotlin("1.4")
public const val SIZE_BYTES: Int = 8
/**
* The number of bits used to represent an instance of Double in a binary form.
*/
@SinceKotlin("1.4")
public const val SIZE_BITS: Int = 64
}
/**