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

fix new keyword broken by recent refactoring #9377

Merged
merged 1 commit into from
Jan 22, 2019
Merged

fix new keyword broken by recent refactoring #9377

merged 1 commit into from
Jan 22, 2019

Conversation

danez
Copy link
Member

@danez danez commented Jan 22, 2019

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

Copy and paste error

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

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

1 similar comment
@babel-bot
Copy link
Collaborator

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

@danez danez merged commit af88e63 into babel:master Jan 22, 2019
@@ -184,7 +184,7 @@ export const keywords = Object.create(null, {
const: makeKeywordProps("const"),
while: makeKeywordProps("while", { isLoop }),
with: makeKeywordProps("with"),
new: makeKeywordProps("new"),
new: makeKeywordProps("new", { beforeExpr, startsExpr }),
Copy link
Member

Choose a reason for hiding this comment

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

I really hate this beforeExpr system, it makes it so easy to regress like this :(

Copy link
Member Author

@danez danez Jan 22, 2019

Choose a reason for hiding this comment

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

This whole sweet.js-context-algorithm (which I think this flags belong to) is so fragile and error prone and doesn't catch a lot of the edge cases. :/ Would be nice to come up with something more robust.

@danez danez deleted the fix-types branch January 22, 2019 07:18
@hzoo hzoo mentioned this pull request Jan 22, 2019
3 tasks
@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: 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.

Syntax Error with yield new
4 participants