diff options
author | Jose <jose@zeroc.com> | 2017-04-25 19:39:12 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-04-25 19:39:12 +0200 |
commit | ea0b5aa6fcc4200bc6aa20f476744ffb0ad97847 (patch) | |
tree | c0b4aa5ae566dfd07314efae4ed65d9a3b590334 /js/test/Ice/acm/Client.js | |
parent | Fix for VS2015 run-time error (diff) | |
download | ice-ea0b5aa6fcc4200bc6aa20f476744ffb0ad97847.tar.bz2 ice-ea0b5aa6fcc4200bc6aa20f476744ffb0ad97847.tar.xz ice-ea0b5aa6fcc4200bc6aa20f476744ffb0ad97847.zip |
Fix (ICE-7805) - Avoid creating functions in a loop in JavaScript
Diffstat (limited to 'js/test/Ice/acm/Client.js')
-rw-r--r-- | js/test/Ice/acm/Client.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/js/test/Ice/acm/Client.js b/js/test/Ice/acm/Client.js index 0095ebeb3cc..1d1d929714e 100644 --- a/js/test/Ice/acm/Client.js +++ b/js/test/Ice/acm/Client.js @@ -156,10 +156,7 @@ { var now = Date.now(); var promise = Ice.Promise.delay(100); - var p = promise; - for(var i = 0; i < 20; ++i) - { - p = p.then(() => { + var p = promise.then(() => { if(this._closed) { return; @@ -173,7 +170,6 @@ return Ice.Promise.delay(100); } }); - } return p; } return Ice.Promise.resolve(); |