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/inheritance/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/inheritance/Client.js')
-rw-r--r-- | js/test/Ice/inheritance/Client.js | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/js/test/Ice/inheritance/Client.js b/js/test/Ice/inheritance/Client.js index 0e8de3ce6fb..fa73d971feb 100644 --- a/js/test/Ice/inheritance/Client.js +++ b/js/test/Ice/inheritance/Client.js @@ -7,13 +7,11 @@ // // ********************************************************************** -(function(global){ - var require = typeof(module) !== "undefined" ? module.require : function(){}; - require("Ice/Ice"); - var Ice = global.Ice; +(function(module, require, exports) +{ + var Ice = require("icejs").Ice; + var Test = require("Test").Test; - require("Test"); - var Test = global.Test; var Promise = Ice.Promise; var allTests = function(out, communicator) @@ -295,7 +293,10 @@ }); }); }; - 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)); |