If you do make this change it should be an optional compiler argument, because this changes the behavior of the code. The following loop should print 1 and 2, not undefined:
var array = []; array[2] = 1; array[4] = 2; for each (var x in array) trace(x); On May 7, 2016 10:18 AM, "Alex Harui" <aha...@adobe.com> wrote: > > > On 5/7/16, 1:32 AM, "lizhi" <s...@qq.com> wrote: > > >must ded the type. > >if(Array){ > > for(var i=0;i<len;i++) > >}else{ > > for in > >} > > Should be doable. How much faster is it? > > Please file a pull request or JIRA so we don't forget this issue. > > Thanks, > -Alex > >