(win)
| 8 | let innerHTMLProto; |
| 9 | |
| 10 | function getInnerHtmlProto(win) { |
| 11 | let innerHTMLProto = win.Element.prototype; |
| 12 | if (!Object.getOwnPropertyDescriptor(innerHTMLProto, 'innerHTML')) { |
| 13 | innerHTMLProto = win.HTMLElement.prototype; |
| 14 | if (!Object.getOwnPropertyDescriptor(innerHTMLProto, 'innerHTML')) { |
| 15 | return null; |
| 16 | } |
| 17 | } |
| 18 | return innerHTMLProto; |
| 19 | } |
| 20 | |
| 21 | before(function () { |
| 22 | if (!getInnerHtmlProto(window)) { |
no outgoing calls
no test coverage detected