()
| 173 | } |
| 174 | |
| 175 | clear() { |
| 176 | if (super.size === 0) { |
| 177 | return; |
| 178 | } |
| 179 | // Clear first, so we get nice console.log outputs with $inspect |
| 180 | super.clear(); |
| 181 | var sources = this.#sources; |
| 182 | |
| 183 | for (var s of sources.values()) { |
| 184 | set(s, false); |
| 185 | } |
| 186 | |
| 187 | sources.clear(); |
| 188 | set(this.#size, 0); |
| 189 | increment(this.#version); |
| 190 | } |
| 191 | |
| 192 | keys() { |
| 193 | return this.values(); |