summaryrefslogtreecommitdiff
path: root/js/test/Ice/exceptions/Client.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Ice/exceptions/Client.js')
-rw-r--r--js/test/Ice/exceptions/Client.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/js/test/Ice/exceptions/Client.js b/js/test/Ice/exceptions/Client.js
index 53cad9d2f27..bd66d33c90f 100644
--- a/js/test/Ice/exceptions/Client.js
+++ b/js/test/Ice/exceptions/Client.js
@@ -40,14 +40,10 @@
{
};
- var ValueFactoryI = function()
- {
- };
-
- ValueFactoryI.prototype.create = function(type)
+ function ValueFactoryI()
{
return null;
- };
+ }
var p = new Ice.Promise();
var test = function(b)
@@ -232,11 +228,11 @@
function()
{
out.write("testing value factory registration exception... ");
- var vf = new ValueFactoryI();
- communicator.addValueFactory(vf, "::x");
+
+ communicator.addValueFactory(ValueFactoryI, "::x");
try
{
- communicator.addValueFactory(vf, "::x");
+ communicator.addValueFactory(ValueFactoryI, "::x");
test(false);
}
catch(ex)