summaryrefslogtreecommitdiff
path: root/js/test/Ice/exceptions/ServerAMD.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/exceptions/ServerAMD.js')
-rw-r--r--js/test/Ice/exceptions/ServerAMD.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/test/Ice/exceptions/ServerAMD.js b/js/test/Ice/exceptions/ServerAMD.js
index 952b50be20f..5e90e31471f 100644
--- a/js/test/Ice/exceptions/ServerAMD.js
+++ b/js/test/Ice/exceptions/ServerAMD.js
@@ -57,5 +57,7 @@
}
exports.ServerAMD = ServerAMD;
}(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));