From 5f8089ab37438435307cd46e40fb474da04327e0 Mon Sep 17 00:00:00 2001 From: Francesco Trotta Date: Fri, 12 Jul 2024 17:04:14 +0200 Subject: [PATCH] Availability of feature `ITERATOR_HELPER` --- Features.md | 2 ++ api-doc/interfaces/FeatureAll.md | 2 +- api-doc/interfaces/FeatureConstructor.md | 2 +- src/lib/features.js | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Features.md b/Features.md index 8363187c..58f5810e 100644 --- a/Features.md +++ b/Features.md @@ -31,6 +31,7 @@ This table lists features available in the most common engines.
  • HTMLDOCUMENT
  • INCR_CHAR
  • INTL +
  • ITERATOR_HELPER
  • LOCALE_INFINITY
  • LOCALE_NUMERALS (implied by LOCALE_NUMERALS_EXT)
  • LOCALE_NUMERALS_EXT @@ -246,6 +247,7 @@ This table lists features available in the most common engines.
  • GMT
  • INCR_CHAR
  • INTL (implied by PLAIN_INTL; Node.js 0.12+) +
  • ITERATOR_HELPER (Node.js 22+)
  • LOCALE_INFINITY (Node.js 0.12+)
  • LOCALE_NUMERALS (implied by LOCALE_NUMERALS_EXT and SHORT_LOCALES; Node.js 13+)
  • LOCALE_NUMERALS_EXT (Node.js 13+) diff --git a/api-doc/interfaces/FeatureAll.md b/api-doc/interfaces/FeatureAll.md index ae425190..7c2115e2 100644 --- a/api-doc/interfaces/FeatureAll.md +++ b/api-doc/interfaces/FeatureAll.md @@ -572,7 +572,7 @@ Availability of iterator helpers. #### Remarks -This feature is not available in any of the supported engines. +Available in Chrome, Edge, Opera, and Node.js 22+. *** diff --git a/api-doc/interfaces/FeatureConstructor.md b/api-doc/interfaces/FeatureConstructor.md index d982915d..180e7fbd 100644 --- a/api-doc/interfaces/FeatureConstructor.md +++ b/api-doc/interfaces/FeatureConstructor.md @@ -882,7 +882,7 @@ Availability of iterator helpers. #### Remarks -This feature is not available in any of the supported engines. +Available in Chrome, Edge, Opera, and Node.js 22+. #### Inherited from diff --git a/src/lib/features.js b/src/lib/features.js index d7bf23fa..169f7fbb 100644 --- a/src/lib/features.js +++ b/src/lib/features.js @@ -965,6 +965,7 @@ var featureInfos = 'HTMLDOCUMENT', 'INCR_CHAR', 'INTL', + 'ITERATOR_HELPER', 'LOCALE_INFINITY', 'LOCALE_NUMERALS_EXT', 'LOCATION', @@ -1172,7 +1173,7 @@ var featureInfos = { inherits: 'NODE_16_6', versions: [['22']], - includes: { OBJECT_ARRAY_ENTRIES_CTOR: false }, + includes: { ITERATOR_HELPER: true, OBJECT_ARRAY_ENTRIES_CTOR: false }, }, SAFARI_7_0: {