This fixes https://github.com/funcool/bide/issues/17. While it's true that toString.call(x) is not incorrect (because everything, including window, inherits from Object), this
removes the warning emitted by Google Closure Compiler because we're implicity referencing a global variable
makes compiler output less noisy for some people
improves consistency because the Object.prototype-pattern is used elsewhere as well (see line 15 of helper.js for an example)
This fixes https://github.com/funcool/bide/issues/17. While it's true that
toString.call(x)
is not incorrect (because everything, includingwindow
, inherits fromObject
), thisObject.prototype
-pattern is used elsewhere as well (see line 15 of helper.js for an example)