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

Update IE polyfill to fix last improve with reduce #362

Merged
merged 1 commit into from
May 4, 2022

Conversation

vitalybaev
Copy link
Contributor

@vitalybaev vitalybaev commented May 4, 2022

In #355 improvement with reduce was introduced. However, it relies on the fact, that UInt8Array is really an array, but in IE actually it's not. Today I investigated it, and it turned out, that UInt8Array in msCrypto is an object.

I found the following workaround, but I'm not sure is there any problems with it. If it's OK, I'll update Russian readme as well.

README.md Outdated

let size = array.length

while (size--) {
Copy link
Owner

@ai ai May 4, 2022

Choose a reason for hiding this comment

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

Can we use here for for better readability since this code is for users?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, updated to for loop

@ai
Copy link
Owner

ai commented May 4, 2022

Yes, let's update it

@vitalybaev
Copy link
Contributor Author

Force pushed updates: for loop, fixed English, Russian and Chinese README

@ai ai merged commit 21728dc into ai:main May 4, 2022
@vitalybaev vitalybaev deleted the fix-ie-polyfill branch May 5, 2022 05:54
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.

2 participants