@awayfl/avm2
Version:
Virtual machine for executing AS3 code
12 lines (10 loc) • 305 B
text/typescript
import { release } from '@awayfl/swf-loader';
import { checkValue } from './checkValue';
import { AXClass } from './AXClass';
export function axIsTypeInterface(x: any) {
if (!x || typeof x !== 'object') {
return false;
}
release || checkValue(x);
return (<AXClass>x).axImplementsInterface(this);
}