diff options
Diffstat (limited to 'js/test/Ice/operations/BatchOneways.js')
-rw-r--r-- | js/test/Ice/operations/BatchOneways.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/js/test/Ice/operations/BatchOneways.js b/js/test/Ice/operations/BatchOneways.js index 016e13d4e94..a431c3414c6 100644 --- a/js/test/Ice/operations/BatchOneways.js +++ b/js/test/Ice/operations/BatchOneways.js @@ -7,8 +7,10 @@ // // ********************************************************************** -(function(global){ - var Ice = global.Ice; +(function(module, require, exports) +{ + var Ice = require("icejs").Ice; + var Test = require("Test").Test; var run = function(communicator, prx, Test, bidir) { @@ -157,5 +159,8 @@ return p; }; - global.BatchOneways = { run: run }; -}(typeof (global) === "undefined" ? window : global)); + exports.BatchOneways = { run: run }; +} +(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)); |