The following function provides two different results, in Node and Browser:
(function funfunfun(root, factory) {
console.log(root === this);
factory(root);
})(this, function (root) {
console.log(root === this);
});
In node, it will output false twice. In the browser it will output true twice, as I would expect.
So the question is... why?