Skip to content

Commit

Permalink
refs #19049, avoid Rhino's global function
Browse files Browse the repository at this point in the history
  • Loading branch information
pottedmeat authored and dylans committed Sep 20, 2017
1 parent e653d77 commit 467bba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dojo.js
Expand Up @@ -64,7 +64,7 @@

// define global
var globalObject = (function(){
if (typeof global !== 'undefined') {
if (typeof global !== 'undefined' && typeof global !== 'function') {
// global spec defines a reference to the global object called 'global'
// https://github.com/tc39/proposal-global
// `global` is also defined in NodeJS
Expand Down
2 changes: 1 addition & 1 deletion global.js
@@ -1,5 +1,5 @@
define(function(){
if (typeof global !== 'undefined') {
if (typeof global !== 'undefined' && typeof global !== 'function') {
// global spec defines a reference to the global object called 'global'
// https://github.com/tc39/proposal-global
// `global` is also defined in NodeJS
Expand Down

0 comments on commit 467bba4

Please sign in to comment.