You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getSize implementation is more complicated than should be. There are intervals involved which, in some conditions, can keep running "forever". I have stumbled upon this issue, when I used getSize in some jest tests. The problem occurs, when an image fails to decode and naturalWidth, naturalHeight are 0.
Expected behavior
No potential for infinite timers.
failure callback is called when an image fails to decode.