diff options
Diffstat (limited to 'js/test/Ice/exceptions/Server.js')
-rw-r--r-- | js/test/Ice/exceptions/Server.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/js/test/Ice/exceptions/Server.js b/js/test/Ice/exceptions/Server.js index f4238648f70..8660cde9565 100644 --- a/js/test/Ice/exceptions/Server.js +++ b/js/test/Ice/exceptions/Server.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 ThrowerI(), 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)); @@ -59,7 +59,6 @@ } } exports._server = 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)); |