diff options
author | Jose <jose@zeroc.com> | 2014-09-02 14:22:34 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-09-02 14:22:34 +0200 |
commit | fef794cdd1f8eb698fa3ccfe6f4cacba88030e9d (patch) | |
tree | 8e0c3c353dbbaa57d60a1da49c13b4153e918763 /js/test/Ice/exceptions/Client.js | |
parent | Fix (ICE-3445) - consider not installing internal header files (diff) | |
download | ice-fef794cdd1f8eb698fa3ccfe6f4cacba88030e9d.tar.bz2 ice-fef794cdd1f8eb698fa3ccfe6f4cacba88030e9d.tar.xz ice-fef794cdd1f8eb698fa3ccfe6f4cacba88030e9d.zip |
Fixed (ICE-5654) - Update JS mapping to not use global types in NodeJS
Diffstat (limited to 'js/test/Ice/exceptions/Client.js')
-rw-r--r-- | js/test/Ice/exceptions/Client.js | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/js/test/Ice/exceptions/Client.js b/js/test/Ice/exceptions/Client.js index 6034cedb0a4..d9a2b8a148a 100644 --- a/js/test/Ice/exceptions/Client.js +++ b/js/test/Ice/exceptions/Client.js @@ -7,12 +7,11 @@ // // ********************************************************************** -(function(global){ - var require = typeof(module) !== "undefined" ? module.require : function(){}; - require("Ice/Ice"); - require("Test"); +(function(module, require, exports) +{ + var Ice = require("icejs").Ice; + var Test = require("Test").Test; - var Ice = global.Ice; var Promise = Ice.Promise; var allTests = function(out, communicator, Test) @@ -482,15 +481,17 @@ { id.properties.setProperty("Ice.MessageSizeMax", "10"); var c = Ice.initialize(id); - return allTests(out, c, global.Test).finally( + return allTests(out, c, Test).finally( function() { return c.destroy(); }); }); }; - global.__test__ = run; - global.__clientAllTests__ = allTests; - global.__runServer__ = true; - -}(typeof (global) === "undefined" ? window : global)); + exports.__test__ = run; + exports.__clientAllTests__ = allTests; + exports.__runServer__ = true; +} +(typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? module : undefined, + typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? require : window.Ice.__require, + typeof(global) !== "undefined" && typeof(global.process) !== "undefined" ? exports : window)); |