On second thought, the Flash and JS implementations is not 1 to 1. The
assignment in Flash is a two-step rpocess of first assigning the value and then
defining it as non-enumerable, while it happens all in a single call in JS.
The Util call is probably the better solution.
> On Apr 30, 2017, at
As far as I can tell, there’s not platform agnostic way to create properties in
objects which are not enumerable. In Flash you’d use setObjectIsEnumerable()
and in JS, you’d use Object.defineProperty().
Using setObjectIsEnumerable() in AS3 code and cross-compiling keeps the call
as-is and gener