Skip to content

Commit

Permalink
Make global object available on global object
Browse files Browse the repository at this point in the history
  • Loading branch information
cdebost committed Feb 11, 2019
1 parent 4011ee0 commit c2c27da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions require.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
global = globalEval('this');
/*jshint evil:false */

// Needed for modules that want to use global directly
global.global = global;

// Non-CommonJS Promise
Promise.prototype['finally'] = Promise.prototype['finally'] || function finallyPolyfill(callback) {
var constructor = this.constructor;
Expand Down

0 comments on commit c2c27da

Please sign in to comment.