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.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/js/test/Ice/exceptions/ServerAMD.js b/js/test/Ice/exceptions/ServerAMD.js
index 72a0973bf94..83c35ba0ad3 100644
--- a/js/test/Ice/exceptions/ServerAMD.js
+++ b/js/test/Ice/exceptions/ServerAMD.js
@@ -26,10 +26,10 @@
{
communicator = Ice.initialize(initData);
echo = await Test.EchoPrx.checkedCast(communicator.stringToProxy("__echo:default -p 12010"));
- let adapter = await communicator.createObjectAdapter("");
+ const adapter = await communicator.createObjectAdapter("");
adapter.add(new AMDThrowerI(), Ice.stringToIdentity("thrower"));
await echo.setConnection();
- let connection = echo.ice_getCachedConnection();
+ const connection = echo.ice_getCachedConnection();
connection.setCloseCallback(con => {
// Re-establish connection if it fails (necessary for MemoryLimitException test)
echo.setConnection().then(() => echo.ice_getCachedConnection().setAdapter(adapter));
@@ -60,7 +60,6 @@
}
}
exports._serveramd = run;
-}
-(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" ? module : undefined,
+ typeof global !== "undefined" && typeof global.process !== "undefined" ? require : this.Ice._require,
+ typeof global !== "undefined" && typeof global.process !== "undefined" ? exports : this));