Skip to content

Commit 1c0d573

Browse files
authored
Merge pull request #105 from github/copilot/fix-iterator-reduce-polyfill-bug
Add ES2024/ES2025 polyfills with fixes for reduce bug, groupBy prototype safety, and iterator resilience
2 parents 7728997 + 20921e5 commit 1c0d573

File tree

10 files changed

+952
-1
lines changed

10 files changed

+952
-1
lines changed

package-lock.json

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import * as withResolvers from './promise-withResolvers.js'
55
import * as requestIdleCallback from './requestidlecallback.js'
66
import * as popover from '@oddbird/popover-polyfill/fn'
77
import * as commandAndCommandFor from 'invokers-polyfill/fn'
8+
import * as objectGroupBy from './object-groupby.js'
9+
import * as mapGroupBy from './map-groupby.js'
10+
import * as promiseTry from './promise-try.js'
11+
import * as iteratorHelpers from './iterator-helpers.js'
812

913
let supportsModalPseudo = false
1014
try {
@@ -53,6 +57,10 @@ export const polyfills = {
5357
withResolvers,
5458
popover,
5559
commandAndCommandFor,
60+
objectGroupBy,
61+
mapGroupBy,
62+
promiseTry,
63+
iteratorHelpers,
5664
}
5765

5866
export function isSupported() {

0 commit comments

Comments
 (0)