Have global exports be compatible with Web Workers
Have global exports be compatible with Web Workers

Assigning to `window` only works in a normal browser environment;
however, Web Workers don't have access to `window`. Instead, the global
object inside Web Workers is `self`.

Browserify ensures that `global` is present to all scripts by creating a
shim reference to it using this logic:

    typeof global !== "undefined" ? global :
    typeof self !== "undefined" ? self :
    typeof window !== "undefined" ? window : {}

Thus, if neither `global` nor `self` were originally present,
`global === window` will be true.

Web Workers compatibility was broken in a81e5558.

JohnnyEstilles/mocha,menelaos/mocha-solarized,aaroncrows/mocha,apkiernan/mocha,rlugojr/mocha,Shyp/mocha,Shyp/mocha,Khan/mocha,boneskull/mocha,menelaos/mocha-solarized,jjoos/mocha,outsideris/mocha,Hacker0x01/mocha,apkiernan/mocha,mochajs/mocha,sul4bh/mocha,ELLIOTTCABLE/mocha,villesau/mocha,jjoos/mocha,santiagoaguiar/mocha,igwejk/mocha,aaroncrows/mocha,pumpupapp/mocha,Khan/mocha,santiagoaguiar/mocha,nightwatchjs/mocha-nightwatch,Hacker0x01/mocha,apkiernan/mocha,outsideris/mocha,nightwatchjs/mocha-nightwatch,ELLIOTTCABLE/mocha,Khan/mocha,rlugojr/mocha,villesau/mocha,boneskull/mocha,beatfactor/mocha,santiagoaguiar/mocha,JohnnyEstilles/mocha,hoverduck/mocha,pumpupapp/mocha,mochajs/mocha,aaroncrows/mocha,hoverduck/mocha,Hacker0x01/mocha,hoverduck/mocha,pumpupapp/mocha,beatfactor/mocha,nightwatchjs/mocha-nightwatch,sul4bh/mocha,jjoos/mocha,adamgruber/mocha,villesau/mocha,sul4bh/mocha,tswaters/mocha,mochajs/mocha,adamgruber/mocha,JohnnyEstilles/mocha,adamgruber/mocha,ELLIOTTCABLE/mocha,igwejk/mocha,menelaos/mocha-solarized,Shyp/mocha,rlugojr/mocha,beatfactor/mocha,hoverduck/mocha,boneskull/mocha,tswaters/mocha,tswaters/mocha