summaryrefslogtreecommitdiff
path: root/js/test/Ice/defaultValue/Client.js
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-10-17 12:33:51 +0200
committerJose <jose@zeroc.com>2018-10-17 12:33:51 +0200
commitadc65476463078dbc96709b6d57c8dea91ed4e89 (patch)
tree13c2790b933a533ce7aea154a478edd4165e4af3 /js/test/Ice/defaultValue/Client.js
parentFixed bug in test driver where server failures could go un-noticed, cleaned u... (diff)
downloadice-adc65476463078dbc96709b6d57c8dea91ed4e89.tar.bz2
ice-adc65476463078dbc96709b6d57c8dea91ed4e89.tar.xz
ice-adc65476463078dbc96709b6d57c8dea91ed4e89.zip
Upgrade JavaScript build to Babel 7
Close #243
Diffstat (limited to 'js/test/Ice/defaultValue/Client.js')
-rw-r--r--js/test/Ice/defaultValue/Client.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/test/Ice/defaultValue/Client.js b/js/test/Ice/defaultValue/Client.js
index e6d22b2e326..716c0b16174 100644
--- a/js/test/Ice/defaultValue/Client.js
+++ b/js/test/Ice/defaultValue/Client.js
@@ -197,5 +197,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));