google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.17k stars 578 forks source link

Top level this in modules should be undefined #2121

Closed arv closed 8 years ago

arv commented 8 years ago

https://tc39.github.io/ecma262/#sec-module-environment-records-getthisbinding

Fixes #2119

arv commented 8 years ago

@johnjbarton PTAL

Too many of our tests used top level this to signal side effects...

johnjbarton commented 8 years ago

LGTM We were probably trying to avoid the global vs window dance.