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
I noticed that extension crashes on my code which uses array to provide texture size.
I checked code from the stacktrace and noticed that there's object destructuring used to retrieve width and height. Once I changed my code to use object syntax ({ width: X, height: Y, depthOrArrayLayers: N } instead of [X, Y, N]) it stopped crashing.
So my suggestion is to add support for both, given that array syntax is supported by browsers and correct according to TypeScript types.
I can also open PR to change it if it's ok.
The text was updated successfully, but these errors were encountered:
Hi!
I noticed that extension crashes on my code which uses array to provide texture size.
I checked code from the stacktrace and noticed that there's object destructuring used to retrieve
width
andheight
. Once I changed my code to use object syntax ({ width: X, height: Y, depthOrArrayLayers: N }
instead of[X, Y, N]
) it stopped crashing.So my suggestion is to add support for both, given that array syntax is supported by browsers and correct according to TypeScript types.
I can also open PR to change it if it's ok.
The text was updated successfully, but these errors were encountered: