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

2nd try: Add loose option for es2015-parameters transformation #5943

Merged
merged 2 commits into from
Jul 12, 2017
Merged

2nd try: Add loose option for es2015-parameters transformation #5943

merged 2 commits into from
Jul 12, 2017

Conversation

maurobringolf
Copy link
Contributor

Q A
Patch: Bug Fix? No
Major: Breaking Change? No
Minor: New Feature? Yes
Deprecations? No
Spec Compliancy? No
Tests Added/Pass? Yes/Yes
Fixed Tickets Fixes #5776
License MIT
Doc PR
Dependency Changes

This is a rebuild of my changes discussed and approved in #5778, because I messed up the history of the other too much. This new PR should be up to date with 7.0 and apply all changes from the old PR within a single commit.

return;
}

state.iife = false;
Copy link
Member

Choose a reason for hiding this comment

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

Please don't muck with the global state object.

};
const params = path.get("params");

if (state.opts.loose) {
Copy link
Member

Choose a reason for hiding this comment

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

This can be referenced without state using this.

if (this.opts.loose) {
  //...
}

@existentialism existentialism added the PR: New Feature 🚀 A type of pull request used for our changelog categories label Jul 12, 2017
@jridgewell jridgewell merged commit b83e0ec into babel:7.0 Jul 12, 2017
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 6, 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: New Feature 🚀 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants