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(parser): super call should be allowed in private method #210

Merged
merged 1 commit into from Mar 18, 2022

Conversation

3cp
Copy link
Member

@3cp 3cp commented Mar 18, 2022

Also fixed the error message for invalid super call.

closes #203

Also fixed the error message for invalid super call.

closes #203
@3cp
Copy link
Member Author

3cp commented Mar 18, 2022

I am really uncomfortable with the removal of the two lines | Context.InClass, especially the second one in ClassField branch.

There is probably some missing test case for the ClassField branch (with some kind of super call? to test the InClass logic in parseSuperExpression).

@3cp 3cp marked this pull request as ready for review March 18, 2022 07:05
@3cp 3cp requested a review from aladdin-add March 18, 2022 07:06
@3cp
Copy link
Member Author

3cp commented Mar 18, 2022

Any idea why the ClassField sets InClass before? I removed it because I cannot think of a test case requiring that.

@3cp 3cp merged commit 6a386a2 into master Mar 18, 2022
@3cp 3cp deleted the fix-private-super branch March 18, 2022 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected private field
2 participants