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
Not really. The values of width and height are undefined when initialized from array. If you look at the code, the bug is trivial. It simply fetches width and height from the description object, assuming width and height were defined using named properties and not an array. It should be easy to fix with a ternary and Array.isArray(). Or better yet, copy the description object and canonicalize the properties in the process.
Version: Deno 1.41.1
This code fails:
This code works:
The text was updated successfully, but these errors were encountered: