diff --git a/lib/internal/util/iterable_weak_map.js b/lib/internal/util/iterable_weak_map.js index b60088030c443a..7a4294bf06fb8a 100644 --- a/lib/internal/util/iterable_weak_map.js +++ b/lib/internal/util/iterable_weak_map.js @@ -65,7 +65,7 @@ class IterableWeakMap { return true; } - *[Symbol.iterator]() { + *[SymbolIterator]() { for (const ref of this.#refSet) { const key = ref.deref(); if (!key) continue; @@ -82,5 +82,5 @@ function cleanup({ set, ref }) { Object.freeze(IterableWeakMap.prototype); module.exports = { - IterableWeakMap + IterableWeakMap, };