Skip to content

refactor: fix upcoming Closure Compiler type errors on Symbol.iterator #8851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 10, 2025

Conversation

lauraharker
Copy link
Contributor

Closure Compiler will soon start typechecking well-known symbol properties, such as Symbol.iterator - see
google/closure-compiler#1737.

This will cause some type errors in existing code that implements Iterable (for context, I ran into these errors in google's internal repo) that is missing a Symbol.iterator override or @override annotation

I'm working on making ClosureCompiler understand well-known
symbol properties, such as Symbol.iterator.
google/closure-compiler#1737

(My immediate interest is fixing internal Google usage of shaka
player, but the open source compiler will eventually get the same
update.)
@lauraharker lauraharker changed the title Fix upcoming Closure Compiler type errors on Symbol.iterator refactor: fix upcoming Closure Compiler type errors on Symbol.iterator Jul 7, 2025
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@joeyparrish joeyparrish merged commit 4ef5e33 into shaka-project:main Jul 10, 2025
30 of 32 checks passed
@joeyparrish
Copy link
Member

Thank you so much!

avelad pushed a commit that referenced this pull request Jul 15, 2025
#8851)

Closure Compiler will soon start typechecking well-known symbol
properties, such as Symbol.iterator - see
google/closure-compiler#1737.

This will cause some type errors in existing code that implements
`Iterable` (for context, I ran into these errors in google's internal
repo) that is missing a Symbol.iterator override or `@override`
annotation
avelad pushed a commit that referenced this pull request Jul 15, 2025
#8851)

Closure Compiler will soon start typechecking well-known symbol
properties, such as Symbol.iterator - see
google/closure-compiler#1737.

This will cause some type errors in existing code that implements
`Iterable` (for context, I ran into these errors in google's internal
repo) that is missing a Symbol.iterator override or `@override`
annotation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants