(property, value)
| 32 | } |
| 33 | |
| 34 | setProperty(property, value) { |
| 35 | if (this[property] === value) { |
| 36 | return; |
| 37 | } |
| 38 | |
| 39 | if (property in NODES_KEYS) { |
| 40 | value = value.map((node) => this.createChild(node)); |
| 41 | } |
| 42 | |
| 43 | if (!NON_ENUMERABLE_PROPERTIES.has(property)) { |
| 44 | this[property] = value; |
| 45 | return; |
| 46 | } |
| 47 | |
| 48 | Object.defineProperty(this, property, { |
| 49 | value, |
| 50 | enumerable: false, |
| 51 | configurable: true, |
| 52 | }); |
| 53 | } |
| 54 | |
| 55 | map(fn) { |
| 56 | /** @type{any} */ |
no test coverage detected