| 302 | |
| 303 | doesNotUseIteratorForKeyValuePairFastCase() { |
| 304 | class Entry { |
| 305 | constructor(k, v) { |
| 306 | this[0] = k; |
| 307 | this[1] = v; |
| 308 | } |
| 309 | get [Symbol.iterator]() { |
| 310 | throw new Error("Should not load Symbol.iterator from Entry!"); |
| 311 | } |
| 312 | } |
| 313 | function e(k, v) { return new Entry(k, v); } |
| 314 | let entries = [e(100, 0), e('z', 1), e('y', 2), e('x', 3), e('y', 4)]; |
| 315 | let result = fromEntries(entries); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…