diff options
author | Jose <jose@zeroc.com> | 2017-02-24 16:58:47 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-02-24 16:58:47 +0100 |
commit | 00df474222bf89db992e8828753afea50ed2abbf (patch) | |
tree | facdb47832a2a896ccc765669bcb89c7a9a3813b /js/test/Ice/timeout/Client.js | |
parent | C++11 build failure (diff) | |
download | ice-00df474222bf89db992e8828753afea50ed2abbf.tar.bz2 ice-00df474222bf89db992e8828753afea50ed2abbf.tar.xz ice-00df474222bf89db992e8828753afea50ed2abbf.zip |
Fix (ICE-7611) Do not use Promise as an alias of Ice.Promise
Diffstat (limited to 'js/test/Ice/timeout/Client.js')
-rw-r--r-- | js/test/Ice/timeout/Client.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/js/test/Ice/timeout/Client.js b/js/test/Ice/timeout/Client.js index cd5b5a83ca7..45ecced133d 100644 --- a/js/test/Ice/timeout/Client.js +++ b/js/test/Ice/timeout/Client.js @@ -11,14 +11,13 @@ { var Ice = require("ice").Ice; var Test = require("Test").Test; - var Promise = Ice.Promise; var allTests = function(out, communicator) { var failCB = function() { test(false); }; var ref, obj, mult, timeout, to, connection, comm, now; - var p = new Promise(); + var p = new Ice.Promise(); var test = function(b) { if(!b) @@ -36,7 +35,7 @@ }; var seq; - Promise.try(() => + Ice.Promise.try(() => { ref = "timeout:default -p 12010"; obj = communicator.stringToProxy(ref); @@ -318,7 +317,7 @@ id.properties.setProperty("Ice.MessageSizeMax", "10000"); var c = Ice.initialize(id); - return Promise.try(() => + return Ice.Promise.try(() => { if(typeof(navigator) !== 'undefined' && isSafari() && isWorker()) { |