diff options
author | Jose <pepone@users.noreply.github.com> | 2020-12-02 11:57:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 11:57:35 +0100 |
commit | b7207440a5bfceec2d9274bb403eb6540cac20f3 (patch) | |
tree | ae267765b182ef70b6484f62c8a341ad1c0ceca5 /js/src/Ice/Promise.js | |
parent | Expand wildcard items in VC++ projects (diff) | |
download | ice-b7207440a5bfceec2d9274bb403eb6540cac20f3.tar.bz2 ice-b7207440a5bfceec2d9274bb403eb6540cac20f3.tar.xz ice-b7207440a5bfceec2d9274bb403eb6540cac20f3.zip |
Workaround JS frameworks that don't support Symbol.species with Promise types (#1170)
Diffstat (limited to 'js/src/Ice/Promise.js')
-rw-r--r-- | js/src/Ice/Promise.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/Ice/Promise.js b/js/src/Ice/Promise.js index 0375853329b..8bad6331db0 100644 --- a/js/src/Ice/Promise.js +++ b/js/src/Ice/Promise.js @@ -16,7 +16,7 @@ class P extends Promise res = resolve; rej = reject; - if(cb !== undefined) + if(cb) { cb(resolve, reject); } |