summaryrefslogtreecommitdiff
path: root/js/src/Ice/browser/ModuleRegistry.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/Ice/browser/ModuleRegistry.js')
-rw-r--r--js/src/Ice/browser/ModuleRegistry.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/js/src/Ice/browser/ModuleRegistry.js b/js/src/Ice/browser/ModuleRegistry.js
index 006b28a937f..ac1d676d2c4 100644
--- a/js/src/Ice/browser/ModuleRegistry.js
+++ b/js/src/Ice/browser/ModuleRegistry.js
@@ -7,9 +7,15 @@
//
// **********************************************************************
-/* globals self */
-const root = typeof(window) !== "undefined" ? window : typeof(global) !== "undefined" ? global : typeof(self) !== "undefined" ? self : {};
-/* globals -self */
+/* global
+ self : false
+*/
+const root = typeof(window) !== "undefined" ? window :
+ typeof(global) !== "undefined" ? global :
+ typeof(self) !== "undefined" ? self : {};
+/* global
+ self : true
+*/
class _ModuleRegistry
{