(object)
| 80 | } |
| 81 | |
| 82 | function GetConstructors(object) { |
| 83 | const constructors = []; |
| 84 | |
| 85 | for (let current = object; |
| 86 | current !== null; |
| 87 | current = ObjectGetPrototypeOf(current)) { |
| 88 | const desc = ObjectGetOwnPropertyDescriptor(current, 'constructor'); |
| 89 | if (desc?.value) { |
| 90 | ObjectDefineProperty(constructors, constructors.length, { |
| 91 | __proto__: null, |
| 92 | value: desc.value, enumerable: true, |
| 93 | }); |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | return constructors; |
| 98 | } |
| 99 | |
| 100 | function GetName(object) { |
| 101 | const desc = ObjectGetOwnPropertyDescriptor(object, 'name'); |
no outgoing calls
no test coverage detected
searching dependent graphs…