My guess is there is something "stringly typed" somewhere in the system.
A sibling comment mentions Swift, but I doubt all components of iCloud are written in it.
A sibling comment mentions Swift, but I doubt all components of iCloud are written in it.
https://docs.swift.org/swift-book/LanguageGuide/Enumerations...
1> let _: Bool = "true"
error: repl.swift:1:15: error: cannot convert value of type 'String' to specified type 'Bool'
let _: Bool = "true"
^~~~~~The reason I say Swift "has" stringly-typed enums is that Objective-C has them (typedefs of NSString where the values are actually strings, and are of course implicitly convertible), and Swift imports them as enums with string-typed raw values.
Anyway, I mostly just meant to suggest that this particular iCloud bug is probably not Swift-related.
> temp0.innerHTML = true // no error
> "true" == true
false
> true == "true"
false var foo = null;
foo.lastName = "anything"; // TypeError, cannot set property "lastName" of null