Kai
09/17/2021, 9:45 PMObject !== window.Object
(see https://bugzilla.mozilla.org/show_bug.cgi?id=1523139). Kotlin does not seem to respect this fact, which, among other things, results in document is Any == false
(because document instanceof window.Object === true
and document instanceof Object === false
). This obviously leads to many further errors.
Is this considered a bug or is it intended behaviour and is there a workaround for this problem?