Skip to content

Update IE polyfill to fix last improve with reduce#362

Merged
ai merged 1 commit intoai:mainfrom
vitalybaev:fix-ie-polyfill
May 4, 2022
Merged

Update IE polyfill to fix last improve with reduce#362
ai merged 1 commit intoai:mainfrom
vitalybaev:fix-ie-polyfill

Conversation

@vitalybaev
Copy link
Copy Markdown
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.

Comment thread README.md Outdated

let size = array.length

while (size--) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner

ai commented May 4, 2022

Yes, let's update it

@vitalybaev
Copy link
Copy Markdown
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