summaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-12-17 17:43:48 +0100
committerJose <jose@zeroc.com>2018-12-17 17:43:48 +0100
commit91b2d1068e03ba612b5843febc7d42370bff2cde (patch)
tree36d38f349e1ccd4f6b3a09316fd5e3303ac96988 /js/src
parentRemove reference to IcePath2 deprecated service (diff)
downloadice-91b2d1068e03ba612b5843febc7d42370bff2cde.tar.bz2
ice-91b2d1068e03ba612b5843febc7d42370bff2cde.tar.xz
ice-91b2d1068e03ba612b5843febc7d42370bff2cde.zip
Use Promise.prototype.try native implementation
Close #318
Diffstat (limited to 'js/src')
-rw-r--r--js/src/Ice/Promise.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/js/src/Ice/Promise.js b/js/src/Ice/Promise.js
index 0c4b5a1abfc..f1e389482d4 100644
--- a/js/src/Ice/Promise.js
+++ b/js/src/Ice/Promise.js
@@ -31,13 +31,6 @@ class P extends Promise
this.reject = rej;
}
- finally(cb)
- {
- return this.then(
- value => P.resolve(cb()).then(() => value),
- reason => P.resolve(cb()).then(() => { throw reason; }));
- }
-
delay(ms)
{
return this.then(