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

Tweak and add tests to babel-helper-annotate-as-pure #7245

Merged
merged 1 commit into from
Jan 20, 2018
Merged

Conversation

existentialism
Copy link
Member

Q                       A
Fixed Issues? Fixes #7026
Patch: Bug Fix? y
Major: Breaking Change? n
Minor: New Feature? n
Tests Added + Pass? y/y
Documentation PR
Any Dependency Changes?
License MIT

Trying to clear through a big backlog of PRs I've been too busy to get done :(

This was originally part of a larger PR that normalizes comment props on nodes, but figured we could land this while bikeshedding that.

@existentialism existentialism added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Jan 20, 2018
@babel-bot
Copy link
Collaborator

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

@nicolo-ribaudo
Copy link
Member

(We need a PR: Tests label)

@hzoo
Copy link
Member

hzoo commented Jan 20, 2018

Still a bug fix so it's ok - I just use "internal for tests", (open to suggestions to change though)

@hzoo hzoo merged commit 5ce5479 into master Jan 20, 2018
@existentialism existentialism deleted the issue7026-2 branch January 20, 2018 18:36
return leadingComments.some(comment => /[@#]__PURE__/.test(comment.value));
};
const isPureAnnotated = ({ leadingComments }) =>
leadingComments &&
Copy link
Member

Choose a reason for hiding this comment

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

@existentialism we should always return boolean from this

Copy link
Member Author

Choose a reason for hiding this comment

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

@Andarist good point, ill fix

aminmarashi pushed a commit to aminmarashi/babel that referenced this pull request Mar 17, 2018
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 2, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 2, 2018
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: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation issue
5 participants