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
{{ message }}
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
Saltarelle compiler does not initialize array of structures when the array is created which is unexpected and different from the behavior of the .NET Framework.
The following code:
var p = new int[3];
((dynamic)System.Html.Window.Instance).console.log(p[0]);
displays "undefined".
This behavior has obvious performance consequences. However, IMO it should be document at some obvious place since it is unexpected.
Workaround: Use "Array.Repeat" to create an array.
The text was updated successfully, but these errors were encountered:
Saltarelle compiler does not initialize array of structures when the array is created which is unexpected and different from the behavior of the .NET Framework.
The following code:
displays "undefined".
This behavior has obvious performance consequences. However, IMO it should be document at some obvious place since it is unexpected.
Workaround: Use "Array.Repeat" to create an array.
The text was updated successfully, but these errors were encountered: