Object.observe cannot be called on the global proxy object
MaxArt2501 opened this issue · comments
When trying to observe the window
object (in a browser environment) or the global
object (in Node), a TypeError
should be thrown with the above message.
That's interesting, because I have primarily considered Object.observe as alternative to Gecko-only Object.prototype.watch(). What is the reason behind that?
I can only guess it was for performance reasons.
Yes, this makes sense, thanks.