Bug of type checking for numeric types on Js platform

It looks like Kotlin (checked with 1.9.22 and with 2.1.20) common code does not properly do type checking of primitive types on Js platform.

Is this a bug or a feature?

val x: Double = 180.0
val y: Any = x
if (y is Byte) {
 println("Y is Byte")
}

image

UPD: this is a 5 years old bug :frowning: https://youtrack.jetbrains.com/issue/KT-33358/Common-code-in-JS-has-another-behaviour-for-numeric-type-checks