()
| 2856 | // that re-hydrates to the same main-thread element on subsequent |
| 2857 | // bridge calls. |
| 2858 | var settle = function() { resolve(hostResult(img)); }; |
| 2859 | // decode() may reject on a decoding error or if the browser has |
| 2860 | // detached the image before it settles; treat either path as |
| 2861 | // "decode done" so the worker still gets the element back and the |
no test coverage detected