It seems like they're basically the same in Flash, so yes, I think that would be fine. If we discover a big enough difference in the future, we can consider a new method on the Language class instead.
- Josh On Jan 10, 2017 11:07 AM, "Alex Harui" <aha...@adobe.com> wrote: > On 1/10/17, 10:42 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote: > > >I don't know about Carlos, but I use hasOwnProperty() in ActionScript to > >see if a property exists at all. It's never made a difference to me > >whether > >it's been added dynamically to an object or if it was defined as a member > >of a class. I only care whether it's there or not. > > Hmm. If the compiler re-coded hasOwnProperty to "in" calls, would that be > a solution? > > -Alex > > >