@sebmck the compile target is es5, so yeah it's a bug; in node it's global env, in browser it's window; it's a bug
-
-
Replying to @jasonmulligan
@jasonmulligan In that issue if you want non-ES6 behaviour, although I'd strongly discourage it. You shouldn't be relying on that behaviour.2 replies 0 retweets 0 likes -
Replying to @jasonmulligan
@jasonmulligan It's not an opinion. It's spec behaviour.1 reply 0 retweets 0 likes -
Replying to @jasonmulligan
@jasonmulligan Because you're writing ES6, you aren't writing ES6-like code.1 reply 0 retweets 0 likes -
Replying to @jasonmulligan
@jasonmulligan You can't expect `this` to be the global anyway. `this` in node is actually `exports` not `global`.3 replies 0 retweets 0 likes -
Replying to @jasonmulligan
@jasonmulligan `typeof global === "undefined" ? global : window`2 replies 0 retweets 0 likes
@jasonmulligan Whoops, should be the other way around.
4:55 AM - 18 Feb 2015
1 reply
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 