(this: any, name: string)
| 117 | function installDebugAttributeShim(): void { |
| 118 | const shimMethods: Record<string, (this: any, ...args: any[]) => any> = { |
| 119 | hasAttribute(this: any, name: string): boolean { |
| 120 | try { |
| 121 | if (debugAttributeStore(this).has(name)) return true; |
| 122 | } catch { |
| 123 | // node lacks a writable property bag — fall through to introspection. |
| 124 | } |
| 125 | return safeCall( |
| 126 | () => |
| 127 | Object.prototype.hasOwnProperty.call(this, name) || |
| 128 | this[name] != null, |
| 129 | false, |
| 130 | ); |
| 131 | }, |
| 132 | getAttribute(this: any, name: string): string | null { |
| 133 | try { |
| 134 | const attributes = debugAttributeStore(this); |
nothing calls this directly
no test coverage detected