MCPcopy Index your code
hub / github.com/nodejs/node / Entry

Class Entry

deps/v8/test/mjsunit/harmony/object-fromentries.js:304–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…