Navigation Menu

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

[_objectSpread2] Do not use hoisted var from prev iteration #10180

Merged
merged 1 commit into from Jul 9, 2019

Conversation

nicolo-ribaudo
Copy link
Member

Q                       A
Fixed Issues? Fix #10166 for real
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

This was an error introduced in https://github.com/babel/babel/pull/10171/files.
The helper got the keys from source, which was defined at the previous iteration.

Also, I added a test faking an old env by deleting Object.getOwnPropertyDescriptors 😎

If I had used let this would not have happened. Also, this is what happens when I merge a PR without waiting for the usual two ✔️; this bug could have been caught by more eyes looking at it.

@JordanProtin Could you check that if you update _objectSpread2 like this in @babel/helpers, @babel/runtime, @babel/runtime-corejs2 and/or @babel/runtime-corejs3 in your node_modules (there could be multiple copied of each package) it works? I can reproduce the error without this fix but it seems to be fixed.

@nicolo-ribaudo nicolo-ribaudo added i: regression PR: Bug Fix 🐛 A type of pull request used for our changelog categories Priority: High labels Jul 8, 2019
@babel-bot
Copy link
Collaborator

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

Copy link
Member

@existentialism existentialism left a comment

Choose a reason for hiding this comment

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

😬

@JordanProtin
Copy link

@nicolo-ribaudo Thank you for your hard work ! I'm sorry, it's a difficult for me to test this now ! I'll do this ASAP ! :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories Priority: High
Projects
None yet
Development

Successfully merging this pull request may close these issues.

undefined is not a function(evaluation 'object.getOwnPropertyDescriptors(arguments[i])')
5 participants