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

Implement/use defineProtoFunc for better polyfills #3994

Merged
merged 4 commits into from
Mar 29, 2022

Conversation

kungfooman
Copy link
Collaborator

Some polyfill functions are just added to e.g. String.prototype.endsWith without using Object.defineProperty and this causes for-in loops to show "funny" results:

E.g. Internet Explorer results before:

image

image

This PR makes it less code + more polyfills (String#join on all typed arrays)

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@mvaligursky mvaligursky self-requested a review March 24, 2022 13:17
Copy link
Contributor

@mvaligursky mvaligursky left a comment

Choose a reason for hiding this comment

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

apart from two small comments, this looks great.

@mvaligursky mvaligursky added enhancement release: next minor Ticket marked for the next minor release labels Mar 24, 2022
@mvaligursky mvaligursky merged commit 9288fa0 into playcanvas:main Mar 29, 2022
@kungfooman kungfooman deleted the defineProtoFunc branch July 19, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: next minor Ticket marked for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants