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

Remove nonstandard functions and fake prototype methods from babel-runtime #8547

Merged
merged 3 commits into from Aug 27, 2018

Conversation

loganfsmyth
Copy link
Member

@loganfsmyth loganfsmyth commented Aug 26, 2018

Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change? Y, if relying on proposals or fake-proto methods, hopefully relatively minimal
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Just like we removed the nonstandard stuff from the polyfill, I'm also removing it from the runtime too.

The runtime also allowed stuff like Array.fill() as a fake replacement for Array.prototype.fill which is bad form mostly. We can work on improving support for prototype-based runtime functions, but we shouldn't encourage of entirely made-up function placement, if we can avoid it.

Lastly, this adds support for Symbol.asyncIterator which I realized was missing.

@loganfsmyth loganfsmyth added the PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release label Aug 26, 2018
@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/8939/

1 similar comment
@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/8939/

Symbol: {
asyncIterator: "symbol/async-iterator",
Copy link
Contributor

Choose a reason for hiding this comment

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

This may have re-broken #4783 by rolling back #5195.

(Yes, I'm very late on upgrading to Babel 7 in a few places...)

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants