Align the Boolean.hashCode() value across platforms
Boolean.hashCode() should return 1231/1237 for true/false correspondingly. As a part of efforts to stabilize Native stdlib.
This commit is contained in:
committed by
Space Team
parent
668157eb41
commit
193aa0f935
@@ -42,7 +42,7 @@ Kotlin.hashCode = function (obj) {
|
||||
return Kotlin.numberHashCode(obj);
|
||||
}
|
||||
if ("boolean" === objType) {
|
||||
return Number(obj)
|
||||
return obj ? 1231 : 1237;
|
||||
}
|
||||
|
||||
var str = String(obj);
|
||||
|
||||
Reference in New Issue
Block a user