Skip to content
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

[wasm] Add Object.fromEntries polyfill to tests to fix Safari 11 #6621

Merged

Conversation

mattsoulanille
Copy link
Member

@mattsoulanille mattsoulanille commented Jul 13, 2022

Safari 11 does not support Object.fromEntries, which is used in test_util.ts. Add a polyfill for Object.fromEntries to the test suite to support testing on Safari 11 and set the target ECMAScript version to es6 in the test bundle.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

@mattsoulanille
Copy link
Member Author

According to the core-js readme, this polyfill should only apply in browsers that lack Object.fromEntries, so it shouldn't affect other browsers.

Copy link
Collaborator

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 2 of 1 approvals obtained

@Linchenn
Copy link
Collaborator

Thank you Matt so much for researching on core-js! LGMT!

@mattsoulanille mattsoulanille merged commit c5c5d9f into tensorflow:master Jul 14, 2022
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.

None yet

3 participants