-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore: Update AbortSignal polyfill for new compiler #7176
chore: Update AbortSignal polyfill for new compiler #7176
Conversation
Hrm... this one seems not to be ready yet. I made the same change in our Google-internal repo and it worked, and I tested compiling this locally in context of this GitHub repo, but apparently there is a runtime issue with the tests. Something about the new compiler version vs how we load things in the tests, I presume. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, review #7149 (it removes the polyfill)
This upgrades the compiler and reworks the AbortSignal polyfill to match the new compiler externs for that class. This is important to make Shaka Player compatible with the latest compilers in use inside Google. Note that the Closure compiler is deprecated, so this should be our final upgrade. We will some day move to TypeScript. This does _not_ update the Closure library, because the latest version causes failures we don't understand in the loading mechanism in test/test/boot.js.
079194b
to
57ad01e
Compare
I have fixed this PR by undoing the upgrade of the Closure library specifically. This was the source of the incompatibility with our test infra, specifically test/test/boot.js. The Closure compiler and deps system have still been upgraded, which brings the open source build in line with Google's internal systems.
I will have to review #7149 carefully, and there may be some risk. In contrast to that, this fix doesn't change behavior and will allow me to fix syncing source code to our internal systems right away. Also, the compiler upgrade will keep the open source releases from accidentally breaking Google's internal systems again in the future (since now they will be using the same compiler). Therefore I would like to merge this first. Happy to discuss it more if there are any objections. And I promise to review #7149 today or tomorrow. |
Incremental code coverage: 73.33% |
This upgrades the compiler and reworks the AbortSignal polyfill to match the new compiler externs for that class. This is important to make Shaka Player compatible with the latest compilers in use inside Google. Note that the Closure compiler is deprecated, so this should be our final upgrade. We will some day move to TypeScript. This does _not_ update the Closure library, because the latest version causes failures we don't understand in the loading mechanism in test/test/boot.js.
This upgrades the compiler and reworks the AbortSignal polyfill to match the new compiler externs for that class. This is important to make Shaka Player compatible with the latest compilers in use inside Google. Note that the Closure compiler is deprecated, so this should be our final upgrade. We will some day move to TypeScript. This does _not_ update the Closure library, because the latest version causes failures we don't understand in the loading mechanism in test/test/boot.js.
This upgrades the compiler and reworks the AbortSignal polyfill to match the new compiler externs for that class. This is important to make Shaka Player compatible with the latest compilers in use inside Google.
Note that the Closure compiler is deprecated, so this should be our final upgrade. We will some day move to TypeScript.
This does not update the Closure library, because the latest version causes failures we don't understand in the loading mechanism in test/test/boot.js.