// PLATFORM: JavaScript class A { fun foo() { } override fun equals(other: Any?): Boolean { if (this === other) return true if (other == null || this::class.js != other::class.js) return false return true } override fun hashCode(): Int { return this::class.js.hashCode() } }