diff options
Diffstat (limited to 'js/test/Ice/timeout/Client.js')
-rw-r--r-- | js/test/Ice/timeout/Client.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/test/Ice/timeout/Client.js b/js/test/Ice/timeout/Client.js index 75e1b6351fd..ba7f774ca97 100644 --- a/js/test/Ice/timeout/Client.js +++ b/js/test/Ice/timeout/Client.js @@ -408,5 +408,7 @@ exports.Client = Client; }(typeof global !== "undefined" && typeof global.process !== "undefined" ? module : undefined, - typeof global !== "undefined" && typeof global.process !== "undefined" ? require : this.Ice._require, - typeof global !== "undefined" && typeof global.process !== "undefined" ? exports : this)); + typeof global !== "undefined" && typeof global.process !== "undefined" ? require : + (typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope) ? self.Ice._require : window.Ice._require, + typeof global !== "undefined" && typeof global.process !== "undefined" ? exports : + (typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope) ? self : window)); |