Skip to content

Commit

Permalink
[BUGFIX beta] Remove mainContext from global.js fix #14859
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltan-nz committed Jan 21, 2017
1 parent 1a1cc78 commit fa91e8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/ember-environment/lib/global.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* globals global, window, self, mainContext */
/* globals global, window, self */

// from lodash to catch fake globals
function checkGlobal(value) {
Expand All @@ -14,5 +14,4 @@ function checkElementIdShadowing(value) {
export default checkGlobal(checkElementIdShadowing(typeof global === 'object' && global)) ||
checkGlobal(typeof self === 'object' && self) ||
checkGlobal(typeof window === 'object' && window) ||
mainContext || // set before strict mode in Ember loader/wrapper
new Function('return this')(); // eval outside of strict mode

0 comments on commit fa91e8c

Please sign in to comment.