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
For 3.6.3 and up we get :
Uncaught TypeError: Cannot read property 'length' of undefined
at __spreadArrays (tsWorker.js:21)
at eval (eval at (main-3.js:1239), :17:19)
at main-3.js:1239
For 3.5.1 and lower it passes without error.
SpreadArray function was introduced here, which triggers this exception: #31166
To be fair spread operator on undefined should fail! As undefined is not iterable.
Just reporting this issue for awareness, as originally did not check for undefined when using the spread operator as older versions of TypeScript did not catch this.