@awayfl/avm2
Version:
Virtual machine for executing AS3 code
11 lines (10 loc) • 421 B
text/typescript
import { Multiname } from '../abc/lazy/Multiname';
import { AXSecurityDomain } from './AXSecurityDomain';
import { Errors } from '../errors';
import { axIsXMLCollection } from './axIsXMLCollection';
export function axGetDescendants(object, mn: Multiname, sec: AXSecurityDomain) {
if (!axIsXMLCollection(object, sec)) {
sec.throwError('TypeError', Errors.DescendentsError, object);
}
return object.descendants(mn);
}