UNPKG

@awayfl/avm2

Version:

Virtual machine for executing AS3 code

10 lines (9 loc) 380 B
export function forEachPublicProperty(object, callbackfn, thisArg) { // REDUX: Do we need to walk the proto chain here? var properties = object.axGetEnumerableKeys(); for (var i = 0; i < properties.length; i++) { var property = properties[i]; var value = object.axGetPublicProperty(property); callbackfn.call(thisArg, property, value); } }