diff options
author | Joe George <joe@zeroc.com> | 2015-12-09 15:25:58 -0500 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2015-12-10 09:57:55 -0500 |
commit | b9c261a2011b4c5d449c96fe888ca562f3534254 (patch) | |
tree | 421af086fd6a724c9bf4e8cbebb5751e1cdd26c1 /js/test/Ice/exceptions/Client.js | |
parent | C++11 mapping adding CommunicatorHolder (diff) | |
download | ice-b9c261a2011b4c5d449c96fe888ca562f3534254.tar.bz2 ice-b9c261a2011b4c5d449c96fe888ca562f3534254.tar.xz ice-b9c261a2011b4c5d449c96fe888ca562f3534254.zip |
ICE-6897 & ICE-6908 for JavaScript ValueFactory's
- Removed ValueFactory class. ValueFactory's are now just function
callbacks
Diffstat (limited to 'js/test/Ice/exceptions/Client.js')
-rw-r--r-- | js/test/Ice/exceptions/Client.js | 14 |
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) |