()
| 178 | } |
| 179 | |
| 180 | preventDefault() { |
| 181 | if (!isEvent(this)) |
| 182 | throw new ERR_INVALID_THIS('Event'); |
| 183 | if (!this.#cancelable || this[kInPassiveListener]) return; |
| 184 | this.#defaultPrevented = true; |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * @type {EventTarget} |
no test coverage detected