summaryrefslogtreecommitdiff
path: root/js/test/Ice/operations/Oneways.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/operations/Oneways.js')
-rw-r--r--js/test/Ice/operations/Oneways.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/js/test/Ice/operations/Oneways.js b/js/test/Ice/operations/Oneways.js
index 6dc01f2d987..c08f378dbda 100644
--- a/js/test/Ice/operations/Oneways.js
+++ b/js/test/Ice/operations/Oneways.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)
{
@@ -103,5 +105,9 @@
return p;
};
- global.Oneways = { run: run };
-}(typeof (global) === "undefined" ? window : global));
+ exports.Oneways = { 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));
+